akon1248

Untitled

Feb 12th, 2019
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. options:
  2. maxhome: 5
  3. command /sethome [<text>]:
  4. trigger:
  5. if arg is set:
  6. set {_num} to arg parsed as integer
  7. if {_num} is not set:
  8. loop {@maxhome} times:
  9. {home.%UUID of player%::%loop-number%} is not set
  10. set {home.%UUID of player%::%loop-number%} to location of player
  11. set yaw of {home.%UUID of player%::%loop-number%} to 0
  12. set pitch of {home.%UUID of player%::%loop-number%} to 0
  13. send "&6あなたのホーム%loop-number%をworld: %player's world%, %location of player%に設定しました"
  14. set {_setflag} to 1
  15. stop loop
  16. {_setflag} is not set
  17. send "&cホームが設定できませんでした"
  18. send "&cホームをどれか一つリセットするか番号を指定して上書きしてください"
  19. else if {_num} is set:
  20. if {_num} is not between 1 and {@maxhome}:
  21. send "&cホームは1から{@maxhome}番までしか設定できません"
  22. else:
  23. set {home.%UUID of player%::%arg%} to location of player
  24. send "&6あなたのホーム%arg%をworld: %player's world%, %location of player%に設定しました"
  25. else if arg is not set:
  26. loop {@maxhome} times:
  27. {home.%UUID of player%::%loop-number%} is not set
  28. set {home.%UUID of player%::%loop-number%} to location of player
  29. set yaw of {home.%UUID of player%::%loop-number%} to 0
  30. set pitch of {home.%UUID of player%::%loop-number%} to 0
  31. send "&6あなたのホーム%loop-number%をworld: %player's world%, %location of player%に設定しました"
  32. set {_setflag} to 1
  33. stop loop
  34. {_setflag} is not set
  35. send "&cホームが設定できませんでした"
  36. send "&cホームをどれか一つリセットするか番号を指定して上書きしてください"
  37. command /deletehome [<text>]:
  38. aliases: /delhome, /resethome
  39. trigger:
  40. if arg is set:
  41. if arg is "all":
  42. if {home.%UUID of player%::*} is not set:
  43. send "&cホームが一つも設定されていません"
  44. else if {home.%UUID of player%::*} is set:
  45. delete {home.%UUID of player%::*}
  46. send "&6ホームをすべて消去しました"
  47. else:
  48. set {_num} to arg parsed as integer
  49. if {_num} is not set:
  50. send "&c番号を指定してください"
  51. else if {_num} is set:
  52. if {_num} is not between 1 and {@maxhome}:
  53. send "&cホームは1から{@maxhome}番までしか存在できません"
  54. else:
  55. if {home.%UUID of player%::%arg%} is not set:
  56. send "&cホーム%arg%は存在しません"
  57. else if {home.%UUID of player%::%arg%} is set:
  58. delete {home.%UUID of player%::%arg%}
  59. send "&6ホーム%arg%を消去しました"
  60. else if arg is not set:
  61. send "&c番号を指定してください"
  62. command /homelist:
  63. trigger:
  64. loop {@maxhome} times:
  65. if {home.%UUID of player%::%loop-number%} is not set:
  66. set {_homeinfo::%loop-number%} to "&6world: &7なし&6, x: &7なし&6, y: &7なし&6, z: &7なし"
  67. else if {home.%UUID of player%::%loop-number%} is set:
  68. set {_homeinfo::%loop-number%} to "&6world: %{home.%UUID of player%::%loop-number%}'s world%, %{home.%UUID of player%::%loop-number%}%"
  69. loop {_homeinfo::*}:
  70. send "&6ホーム%loop-index%: %loop-value%"
  71. command /home [<text>]:
  72. trigger:
  73. if arg is set:
  74. set {_num} to arg parsed as integer
  75. if {_num} is not set:
  76. send "&c番号を指定してください"
  77. else if {_num} is set:
  78. if {_num} is not between 1 and {@maxhome}:
  79. send "&cホームは1から{@maxhome}番までしか存在できません"
  80. else:
  81. if {home.%UUID of player%::%arg%} is not set:
  82. send "&cホーム%arg%は存在しません"
  83. else if {home.%UUID of player%::%arg%} is set:
  84. teleport player to {home.%UUID of player%::%arg%}
  85. send "&6あなたをホーム%arg%にテレポートしました"
  86. else if arg is not set:
  87. send "&c番号を指定してください"
Advertisement
Add Comment
Please, Sign In to add comment