akon1248

Untitled

Jul 24th, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. command /fly [<text>]:
  2. aliases: /flight
  3. permission: sk.command.fly
  4. permission message: &cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error.
  5. trigger:
  6. if arg 1 is set:
  7. if arg 1 is not "true" or "false" or "enable" or "disable":
  8. send "&cUsage:/fly <true|false|enable|disable>"
  9. stop
  10. if arg 1 is "true":
  11. set {fly.%player%} to true
  12. if arg 1 is "false":
  13. set {fly.%player%} to false
  14. if arg 1 is "enable":
  15. set {fly.%player%} to true
  16. if arg 1 is "disable":
  17. set {fly.%player%} to false
  18. if {fly.%player%} is true:
  19. set player's flight mode to true
  20. send "&afly mode is enabled now"
  21. if {fly.%player%} is false:
  22. set player's flight mode to false
  23. send "&cfly mode is disabled now"
  24. if arg 1 is not set:
  25. if {fly.%player%} is false:
  26. set {fly.%player%} to true
  27. stop
  28. if {fly.%player%} is true:
  29. set {fly.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment