📜Conditions
⚠️ CONDITIONS NEED RESTART TO BE APPLIED⚠️ How conditions work ?

Make conditions
conditions:
my-first-conditions:
placeholder: ""
equals: ""
commands: "" #optional
authorized:
my-first-conditions:
placeholder: ""
equals: ""
EXAMPLE WITH FACTIONUUID
conditions:
not-authorized:
my-first-conditions:
placeholder: "%factionsuuid_faction_territory_name%"
equals: "§2Wilderness"
Here the player can't fly wilderness zone.
conditions:
not-authorized:
my-first-conditions:
placeholder: "%factionsuuid_faction_territory_name%"
equals: "§2Wilderness"
authorized:
my-first-conditions:
placeholder: "%worldguard_region_name%"
equals: "spawn"
With this config, now player can fly in the region "spawn". You can use placeholder in placeholder and equals to make some condition (like player can fly in his claim).
EXAMPLE WITH LANDS
conditions:
not-authorized:
my-first-conditions:
placeholder: "%player_name%" #make sure Player ecloud is download for PlaceholderAPI
equals: "%player_name%" #working always
commands:
- 'playsound minecraft:entity.enderman.teleport ambient %player% ~ ~ ~ 5100'
authorized:
my-seconds-conditions:
placeholder: "%lands_land_name_plain_here%"
equals: "%lands_lands%"
Here player can fly on his claim only. Note: Player will have the playsound `entity.enderman.teleport`
Last updated