kazuken0814

speed

Sep 29th, 2018
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. command /speed [<player>] [<text>] [<number>]:
  2. Executable by: players
  3. Permission: skript.fly.speed
  4. permission message: &cYou don't have permission.
  5. trigger:
  6. if arg 1 is not set:
  7. execute player command "/playsound minecraft:entity.cat.ambient player %player% ~ ~ ~ 100 0"
  8. send "&8&m----------------------------"
  9. send "&a&oPlease use &8(&aplayer) &7fly&8/&7walk &8(&enumber&8)"
  10. send "&7Available speed for fly and walk&8:"
  11. send "&e1/2 and 3 4 5"
  12. send "&8&m----------------------------"
  13. else:
  14. if arg 2 is "walk":
  15. if arg 3 is set:
  16. execute player command "/playsound minecraft:ui.button.click player %player% ~ ~ ~ 100 1"
  17. if arg 3 is not set:
  18. send "&a&oPlease use&8: &7/speed walk (number)"
  19. if arg 3 is 1:
  20. set the player's walk speed to 0.2
  21. message "&7Walking set back to normal."
  22. if arg 3 is 2:
  23. set the player's walk speed to 2
  24. message "&7Walking speed set to 2."
  25. if arg 3 is 3:
  26. set the player's walk speed to 3
  27. message "&7Walking speed set to 3."
  28. if arg 3 is 4:
  29. set the player's walk speed to 4
  30. message "&7Walking speed set to 4."
  31. if arg 3 is 5:
  32. set the player's walk speed to 5
  33. message "&7Walking speed set to 5."
Advertisement
Add Comment
Please, Sign In to add comment