Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /birds [<text>]:
- permission: skript.op
- trigger:
- if arg 1 is equal to "on":
- if {birds} is true:
- message "Birds are already enabled!"
- else:
- set {birds} to true
- loop all players:
- set loop-player's flight state to true
- broadcast "Birds enabled"
- if arg 1 is equal to "off":
- if {birds} is not set:
- message "Birds are already disabled!"
- else:
- delete {birds}
- loop all players:
- set loop-player's flight state to false
- broadcast "Birds disabled"
- on join:
- if {birds} is true:
- set player's flight state to true
- on quit:
- set player's flight state to false
Advertisement
Add Comment
Please, Sign In to add comment