Flags

Plot protection flags and how they control player interactions.

Overview

Flags control what non-members can do on a plot. Each flag can be toggled by the plot owner (or members with the CHANGE_FLAG permission) through the GUI or by an admin using /plotsadmin setflag.

When a non-member attempts a blocked action, they receive a notification via action bar or chat (configurable).

Available Flags

FlagDefaultConfigurableDescription
PVPEnabledYesPlayer vs player combat
BUILDEnabledYesBlock placement by non-members
DESTROYEnabledYesBlock breaking by non-members
INTERACTEnabledYesBlock interaction (buttons, levers, doors)
ITEM_FRAMEEnabledYesItem frame interaction
CHESTEnabledYesChest and container access
EXPLOSIONEnabledYesTNT and creeper explosions
LAVAEnabledYesLava placement and flow
WATEREnabledYesWater placement and flow
IGNITEEnabledYesFire spread and ignition
SNOW_MANEnabledNoSnow golem building
ARMOR_STANDEnabledYesArmor stand interaction
ENDER_PEARLEnabledYesEnder pearl teleportation
SET_HOMEEnabledYesSetting home points (sethome commands)
DAMAGE_PASSIVE_MOBSEnabledYesDamaging passive mobs (cows, sheep, etc.)
DAMAGE_AGGRESSIVE_MOBSEnabledYesDamaging aggressive mobs (zombies, etc.)
POTIONEnabledYesPotion usage
VEHICLEEnabledYesMinecart and boat usage
RECEIVE_DAMAGE_FROM_MOBSDisabledYesPlayers receive damage from mobs
PHANTOM_SPAWNDisabledYesPhantom spawning on the plot

Tip: When a flag is β€œEnabled” by default, it means the action is allowed for non-members. Toggle it off to block that action.

Configuration

Notification Type

Control how blocked action notifications are displayed:

notification-type: ACTION_BAR
TypeDescription
ACTION_BARShows notification above the hotbar
CHATShows notification in the chat

Flag Change Delay

Prevents flag spam by requiring a cooldown between changes:

flag-delay: 5s

Set Home Commands

Commands that are blocked when the SET_HOME flag is disabled:

set-home-commands:
  - "sethome"
  - "cmi:sethome"
  - "essentials:sethome"

Non-Configurable Flags

Flags with configurable: false cannot be toggled by players through the GUI. They are set to their default value and can only be changed by administrators.

Flag Configuration Example

Each flag can be customized with a display item in the GUI:

flags:
  - flag-type: PVP
    delay: false
    configurable: true
    default-flag: true
    flag-item:
      material: DIAMOND_SWORD
      display-name: "&cPVP"
      lore:
        - "&7Toggle player combat"
FieldTypeDescription
flag-typeEnumThe flag identifier
delayBooleanWhether this flag has a change cooldown
configurableBooleanWhether players can toggle this flag
default-flagBooleanDefault state for new plots
flag-itemObjectGUI display item (material, name, lore)