TerritoryGuard
PluginApache-2.0

TerritoryGuard

Land claiming and territory protection plugin with roles, flags, anti-grief protection, and PlaceholderAPI support.

118
Downloads
0
Followers
1 months ago
Updated
📦
7
Versions

📖About TerritoryGuard

About

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.
Install
  1. Download TerritoryGuard.jar.
  2. Place the file in your server's plugins/ folder.
  3. Restart the server.
  4. Adjust config.yml if needed.
  5. Done.
Create-regions

Players can claim land using a simple selection system:

  1. Using a wand: /twand – left-click to set position 1, right-click to set position 2.
  2. Using commands: /tg tpos1 and /tg tpos2 – sets positions to player location.
  3. Create territory: /tg create <name>
    after selecting an area.

Once created, territories are saved to territories.yml and persist across server restarts.
Config

Н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.

Flags
**/tg flag** <territory> <flag> [on/off]
PlaceholderAPI-Integration

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%