Configuration & Permissions

Configuration & Permissions

Configuration

Below are the configuration options available in config.yml

Event Listeners

Normally, even when flags are turned off, GriefPreventionFlags must still perform checks to see that the flags are turned off. Event Listener options allow you to tell GriefPreventionFlags to stop monitoring certain "high-impact" events that can cause slower servers or very high population servers some problems. However, doing so will disable any flags that require these events, it may also disable events being used by 3rd party extensions of GriefPreventionFlags.

OptionFlags & Events
BlockAll Ice, Snow, Grass, and DragonEggTp flags.
CreatureSpawnAll Spawn and Build flags, BreedVillager.
EntityDamageAll "damage" flags (does not include Pvp or MonsterDamage)
InventorySpendExp Flag
LeafDecayThe LeafDecay flag.
PlayerMoveNotifyEnter, NotifyExit, AllowEntry, AllowLeave flags. PlayerEnterClaimEvent and PlayerExitClaimEvent.
WeatherLightning Flag.

Clusters

Clusters provide a way of grouping flags together, allowing the user to bypass all the typing. New clusters can be added by the server operator by editing the clusters.yml file. Clusters maintain their own permissions system, they do not require a flag permission even if the flag is in the cluster. Setting a cluster permission will not automatically include the flag permission or vice versa. Below is a list of default clusters. These defaults are examples and can be edited or removed.

IMPORTANT: When adding new clusters, the name should ALWAYS be lower case. Flag names are not case sensitive, and using cluster names with command in-game are not case sensitive. You may use in-line YAML list format if you wish.

cluster:
  buildcreature:
  - BuildGolem
  - BuildSnowman
  - BuildWither
  jail:
  - AllowEntry
  - AllowLeave
  - AllowTpIn
  - AllowTpOut
  notify:
  - NotifyExit
  - NotifyEnter
  spawnmonster:
  - SpawnByPlugin
  - SpawnInvasion
  - SpawnJockey
  - SpawnLightning
  - SpawnMob
  - Spawner
  - SpawnChunk
  - SpawnOther
  damage:
  - DamageBlockExplode
  - DamageContact
  - DamageDrown
  - DamageFall
  - DamageBlockFall
  - DamageFire
  - DamageBurn
  - DamageLava
  - DamageLightning
  - DamageMagic
  - DamageMelting
  - DamagePoison
  - DamageStarve
  - DamageSuffocate
  - DamageSuicide
  - DamageThorns
  - DamageVoid
  - DamageWither
  - DamageOther

Permissions

Below is the list of permissions available. In order to modify a flag you must give a user both the command permission and the specific flag permission.

PermissionDescriptionDefault
gpflags.*Allows access to all permissions in the plugin.op
gpflags.setflag.*Allows access to set or remove flags, messages, and trust at any location.op
gpflags.setcluster.*Allows the user set or remove clusters at any location.op
gpflags.getflag.*Allows access to all getflag commandseveryone
gpflags.helpAllows access to all help commands in GriefPreventionFlags.everyone
gpflags.flags.*Allows you to set all flag types.op
gpflags.bypass.*Allows the user to bypass all player flag effects.op
gpflags.cluster.*Allows you to set all cluster typesop

Flag Command Permissions

PermissionDescriptionDefault
gpflags.getflagGives access to the getflag commandeveryone
gpflags.getflag.globalGives access to the getflagglobal commandeveryone
gpflags.setflagAllows you to set or remove flags, messages, and trust in your own claim.op
gpflags.setflag.othersAllows you to set or remove flags, messages, and trust in others claims (not admin claims)op
gpflags.setflag.globalAllows you to set or remove flags globally.op
gpflags.setflag.adminAllows you to set or remove flags, messages, and trust in an admin claimop
gpflags.setflag.unclaimedAllows users to set flags for the world in unclaimed areas.op

Cluster Command Permissions

PermissionDescriptionDefault
gpflags.setclusterAllows you to set or remove a cluster in your own claimop
gpflags.setcluster.othersAllows you to set or remove a cluster in others claims (not admin claims)op
gpflags.setcluster.globalAllows you to set or remove a cluster globallyop
gpflags.setcluster.adminAllows you to set or remove a cluster in an admin claimop
gpflags.setcluster.unclaimedAllows users to set flags for the world in unclaimed areas.op

Help Command Permissions

gpflags.flagsGives access to the flags help commandeveryone
gpflags.clustersGives access to the clusters help command.everyone

Flag Permissions

PermissionDescriptionDefault
gpflags.flags.<flag name>Allows you to set <flag name>op
gpflags.bypass.<flag name>Allows a user to bypass a player flag effect.op
gpflags.cluster.<cluster name>Allows you to set <cluster name>op

Deprecated

These permissions still work, for now. Try to stop using them.

PermissionDescriptionDefault
gpflags.removeflagDeprecated (use gpflags.setflag instead)op