Advertisement
kama6012

Fly

Feb 24th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. Command /fly [<boolean>]:
  2. Description:飛行モードを切り替えます
  3. Usage: /fly [true/false]
  4. Aliases: /flytoggle
  5. Executable by: players
  6. Permission: skript.commands.fly
  7. Trigger:
  8. if arg 1 is not set:
  9. if {fly.%player%} is not set:
  10. message "&7飛行モードが&a有効&7になりました。"
  11. play sound "block.note.pling" at player
  12. set player's flight mode to true
  13. set {fly.%player%} to true
  14. stop
  15. else:
  16. message "&7飛行モードが&c無効&7になりました。"
  17. play sound "block.piston.contract" at player
  18. set player's flight mode to false
  19. delete {fly.%player%}
  20. Stop
  21. else:
  22. if arg 1 is true:
  23. message "&7飛行モードが&a有効&7になりました。"
  24. play sound "block.note.pling" at player
  25. set player's flight mode to true
  26. set {fly.%player%} to true
  27. stop
  28. else:
  29. message "&7飛行モードが&c無効&7になりました。"
  30. play sound "block.piston.contract" at player
  31. set player's flight mode to false
  32. delete {fly.%player%}
  33. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement