Advertisement
Kamado

Untitled

Jul 30th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 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."
  34. if arg 2 is "fly":
  35. if arg 3 is not set:
  36. send "&a&oPlease use&8: &7/speed fly (number)"
  37. if arg 3 is 1:
  38. set the player's fly speed to 0.1
  39. message "&7Fly speed set back to normal."
  40. if arg 3 is 2:
  41. set the player's fly speed to 2
  42. message "&7Fly speed set to 2"
  43. if arg 3 is 3:
  44. set the player's fly speed to 3
  45. message "&7Fly speed set to 3"
  46. if arg 3 is 4:
  47. set the player's fly speed to 4
  48. message "&7Fly speed set to 4"
  49. if arg 3 is 5:
  50. set the player's fly speed to 5
  51. message "&7Fly speed set to 5"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement