📜Conditions
Auto reactivate fly after condition disable fly
auto-reactivate-fly-after-conditions-disable: true
Make conditions
fly-rules:
# 1. Admins bypass everything
admin_bypass:
priority: 0
conditions:
perm:
type: has_permission
permission: "fly.admin"
result: ALLOW
# 2. No flying during combat!
combat_check:
priority: 1
conditions:
in_combat:
type: string_equals
input: "%combatlogx_in_combat%"
value: "true"
result: DENY
actions:
- '[actionbar] &cCombat in progress...'
# 3. Flight allowed at Spawn
spawn_fly:
priority: 10
conditions:
in_spawn:
type: string_equals_ignorecase
input: "%worldguard_region_name%"
value: "spawn"
result: ALLOW
actions:
- '[actionbar] &bSafe Zone'
# 4. Default: DENY
# If player is not admin, not in combat, and not at spawn -> NO FLIGHT.
default_deny:
priority: 999
result: DENY
actions:
- '[message] &cYou are not allowed to fly here.'This part :
Result
Priority
TYPE
ACTIONS
Last updated