Skip to main content

Default Flags

There are many different flags available in LandGuard, each controlling a specific aspect of land protection and gameplay. These flags can be toggled on or off to customize the behavior of lands according to the needs of the players.

📋 Flag Types

Here you can find a list of the available flags and their default states. The default state indicates whether the flag is enabled or disabled when a new land is created.

FlagDefault StateDescription
BLOCK_BREAKfalseAllows or denies breaking blocks
BLOCK_PLACEfalseAllows or denies placing blocks
INTERACTfalseControls interactions with objects (e.g., buttons, levers)
DAMAGE_FRIENDLY_MOBSfalseAllows attacking passive mobs
DAMAGE_HOSTILE_MOBStrueAllows attacking hostile mobs
RECEIVE_DAMAGEfalseWhether entities receive damage
MOB_SPAWNINGtrueControls natural mob spawning
TNT_EXPLOSIONSfalseEnables or disables TNT explosions
CREEPER_EXPLOSIONSfalseControls damage from creepers
OTHER_EXPLOSIONSfalseCovers other types of explosions (e.g., beds, end crystals)
ENTERtrueControls whether players can enter the land
IGNITEfalseAllows or denies ignition (e.g., flint and steel)
FIRE_SPREADINGfalseEnables fire to spread
BLOCK_SPREADINGtrueControls natural spreading like grass or vines
WATER_FLOWtrueAllows water to flow into or within the land
LAVA_FLOWtrueAllows lava flow
PVPtrueEnables or disables player versus player combat
CHEST_ACCESSfalseControls access to containers
PISTON_USEfalseAllows pistons to function
LEAVE_DECAYtrueControls whether leaves decay naturally
RIDEfalseWhether players can ride entities
VEHICLE_PLACEfalseAllows placing boats or minecarts
VEHICLE_DESTROYfalseAllows destroying vehicles
VEHICLE_USEfalseAllows use of minecarts and boats
BED_USEfalseAllows sleeping in beds
ITEM_PICKUPfalseControls whether items can be picked up
FERTILIZEfalseAllows use of bone meal or similar items

Each of these flags can be toggled individually for each land.

⚙️ Configuring Flag Defaults

You can configure the default state of flags for all new lands using the config.yml file. This allows server administrators to define baseline behavior for newly created lands.

Example section in config.yml:

  defaultFlagValues:
- flag: "BLOCK_BREAK"
enabled: false
- flag: "MOB_SPAWNING"
enabled: true

This configuration ensures that, for example, block breaking is disabled by default and mobs are allowed to spawn. Server administrators can also customize which flags players can manage using permissions and set costs for changing them.

📝 To change flags for an existing land, use the in-game /land flag command.