IchinoseYuki

IY-Speed.sk v1.0

Oct 25th, 2019
252
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Written by IchinoseYuki (Discord:一ノ瀬雪#1027)
  2. #Request: IY-Core Ver:1.0 or later
  3.  
  4. on script load:
  5. broadcast "&e&l&k|||&9&l[&b&lIchinoseYuki Skript - Walk/Fly Speed&9&l]&e&l&k|||&r &7Ver.1.0"
  6.  
  7. command /flyspeed [<string>]:
  8. aliases: /fs
  9. trigger:
  10. if player don't have permission "skript.speed.fly":
  11. send "&4Error: &rYou don't have permission." if {IY::config::%uuid of player%::language} is "en"
  12. send "&4失敗: &rそのコマンドを使用する権限がありません。" if {IY::config::%uuid of player%::language} is "ja"
  13. stop
  14. if arg is not set:
  15. send "&4Error: &rSpecify argument for command." if {IY::config::%uuid of player%::language} is "en"
  16. send "&4失敗: &rコマンドの引数を指定してください。" if {IY::config::%uuid of player%::language} is "ja"
  17. stop
  18. if arg parsed as number is not more than 0.99:
  19. send "&4Error: &rIncorrect argument for command.%nl%&0: &7/flyspeed &c&n%arg-1%" if {IY::config::%uuid of player%::language} is "en"
  20. send "&4失敗: &rコマンドの引数の指定が間違っています。%nl%&0: &7/flyspeed &c&n%arg-1%" if {IY::config::%uuid of player%::language} is "ja"
  21. stop
  22. set {_n} to arg parsed as number / 10
  23. if arg parsed as number is 1:
  24. set the player's fly speed to 0.1
  25. send "&aSuccess: &rChanged your fly speed to default." if {IY::config::%uuid of player%::language} is "en"
  26. send "&a成功: &r飛行スピードをデフォルトに戻しました。" if {IY::config::%uuid of player%::language} is "ja"
  27. stop
  28. set the player's fly speed to {_n}
  29. send "&aSuccess: &rChanged your fly speed to %arg%." if {IY::config::%uuid of player%::language} is "en"
  30. send "&a成功: &r飛行スピードを%arg%に変更しました。" if {IY::config::%uuid of player%::language} is "ja"
  31.  
  32. command /walkspeed [<string>]:
  33. aliases: /ws
  34. trigger:
  35. if player don't have permission "skript.speed.walk":
  36. send "&4Error: &rYou don't have permission." if {IY::config::%uuid of player%::language} is "en"
  37. send "&4失敗: &rそのコマンドを使用する権限がありません。" if {IY::config::%uuid of player%::language} is "ja"
  38. stop
  39. if arg is not set:
  40. send "&4Error: &rSpecify argument for command." if {IY::config::%uuid of player%::language} is "en"
  41. send "&4失敗: &rコマンドの引数を指定してください。" if {IY::config::%uuid of player%::language} is "ja"
  42. stop
  43. if arg parsed as number is not more than 0.99:
  44. send "&4Error: &rIncorrect argument for command.%nl%&0: &7/walkspeed &c&n%arg-1%" if {IY::config::%uuid of player%::language} is "en"
  45. send "&4失敗: &rコマンドの引数の指定が間違っています。%nl%&0: &7/walkspeed &c&n%arg-1%" if {IY::config::%uuid of player%::language} is "ja"
  46. stop
  47. set {_n} to arg parsed as number / 5
  48. if arg parsed as number is 1:
  49. set the player's walk speed to 0.2
  50. send "&aSuccess: &rChanged your walk speed to default." if {IY::config::%uuid of player%::language} is "en"
  51. send "&a成功: &r歩行スピードをデフォルトに戻しました。" if {IY::config::%uuid of player%::language} is "ja"
  52. stop
  53. set the player's walk speed to {_n}
  54. send "&aSuccess: &rChanged your walk speed to %arg%." if {IY::config::%uuid of player%::language} is "en"
  55. send "&a成功: &r歩行スピードを%arg%に変更しました。" if {IY::config::%uuid of player%::language} is "ja"
RAW Paste Data