
TerritoryGuard is a powerful protection plugin for Minecraft servers that lets players claim land, manage access, and stop griefing with flexible rules.
- Claim territories with a wand or commands.
- Owner, co-owner, member, and guest role system.
- Flexible flags for PvP, fire, liquids, explosions, chests, doors, and redstone.
- Protection against pistons, lava, water, TNT, creepers, and endermen.
- PlaceholderAPI support for scoreboards and HUD plugins.
- Auto-save to YAML files.
- Visual border particles while selecting land.

- Download TerritoryGuard.jar.
- Place the file in your server's plugins/ folder.
- Restart the server.
- Adjust config.yml if needed.
- Done.

Players can claim land using a simple selection system:
- Using a wand:
/twand– left-click to set position 1, right-click to set position 2. - Using commands:
/tg tpos1and/tg tpos2– sets positions to player location. - Create territory:
/tg create <name>after selecting an area.
Once created, territories are saved to territories.yml and persist across server restarts.

Нe configuration file is simple and allows quick tuning:
s# TerritoryGuard Configuration for Minecraft 1.12.x - 26.1.x
settings:
# Default language
language: "en"
# Maximum territories per player
max-territories-per-player: 5
# Minimum and maximum territory size (in blocks)
min-size: 10
max-size: 1000
# Visual effects
particles-enabled: true
# Flag defaults for new territories
flags:
build: false
pvp: false
fire: false
lava: false
water: false
piston: false
explosions: false
enderman: false
chest: false
door: false
redstone: false
enter: true
You can change the default language, limit the number of territories per player, and control the minimum/maximum allowed claim size.

**/tg flag** <territory> <flag> [on/off]

TerritoryGuard fully supports PlaceholderAPI, allowing you to display territory info in scoreboards, TAB plugins, and custom GUIs.
%territoryguard_name%Current territory name%territoryguard_owner%Territory owner name%territoryguard_owner_display%Owner name with "You" highlight%territoryguard_size%Territory size in blocks%territoryguard_members%Number of members%territoryguard_coowners%Number of co-owners%territoryguard_count%How many territories the player owns%territoryguard_territories%List of player's territories%territoryguard_role%Player role (Owner/Co-owner/Member/Guest)%territoryguard_in_territory%Yes/No if inside a territory%territoryguard_flag_<flag>%Flag state (on/off)
Example usage in TAB scoreboard:
&7Current: &f%territoryguard_name%
&7Owner: %territoryguard_owner_display%
&7Role: %territoryguard_role%
