K2Rk1o

[Skript]・Rank-Changer

Jan 24th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.80 KB | None | 0 0
  1. Options:
  2. #==============================================================#
  3. #Rank-Changer
  4. #==============================================================#
  5. #Permission
  6. # rank.changer
  7. #Command#
  8. #rank <> <> <> <>
  9. #rank set [prefix/suffix] %name %prefix/suffix-rank
  10. #rank clear %name
  11. #
  12. #
  13. #Don't Edit ⇩
  14. prefix: &9&l[&6&l&oRank&b&lSystem&9&l]
  15. help: &9&l[&6&l&oRank&b&lSystem&9&l]&7コマンドが間違っています!&9/rank help
  16. prefix_msg: &9&l[&6&l&oRank&b&lSystem&9&l] &9prefixを&7設定しました。
  17. suffix_msg: &9&l[&6&l&oRank&b&lSystem&9&l] &9suffixを&7設定しました。
  18. #デフォルトのランク
  19. #初期のランク
  20. #
  21. default: &8NONE
  22. #
  23. #鯖に参加したときにアナウンスされる
  24. #%player% = 名前 %{prefix::%player%}% = ランク
  25. join: &9[&ajoin&9]%{prefix::%player%}% %player%
  26. #
  27. #鯖から退出したときにアナウンスされる
  28. #%player% = 名前 %{prefix::%player%}% = ランク
  29. quit: &9[&cquit&9]%{prefix::%player%}% %player%
  30. #==============================================================#
  31. On join:
  32. set join message to "{@join}"
  33. if {prefix::%uuid of player%} isn't set:
  34. set {prefix::%uuid of player%} to "{@default}"
  35. stop
  36. On quit:
  37. set quit message to "{@quit}"
  38.  
  39. On any movement:
  40. set the player's tablist name to "&9&l≫%{prefix::%uuid of player%}% &f%player% %{suffix::%uuid of player%}%"
  41.  
  42. on chat:
  43. cancel event
  44. if {mute::%uuid of player%} is true:
  45. send "{@prefix} &6あなたはMUTEされています。"
  46. stop
  47. if {prefix::%uuid of player%} is set:
  48. if {suffix::%uuid of player%} is set:
  49. broadcast "&8≫&a&lチャット &7≫%{prefix::%uuid of player%}% &f%player% %{suffix::%uuid of player%}%&a: %message%"
  50. else:
  51. broadcast "&8≫&a&lチャット &7≫%{prefix::%uuid of player%}% &f%player%&a: %message%"
  52. else:
  53. if {suffix::%uuid of player%} is set:
  54. broadcast "&8≫&a&lチャット &7≫ &f%player% %{suffix::%uuid of player%}%&a: %message%"
  55. else:
  56. broadcast "&8≫&a&lチャット &7≫ &f%player%&a: %message%"
  57.  
  58. command /rank [<text>] [<text>] [<text>] [<text>]:
  59. usage: /rank [set/clear/help] [prefix/suffix/]
  60. permission: rank.changer
  61. trigger:
  62. if arg-1 is "set":
  63. if arg-2 is "prefix":
  64. if arg-3 is set:
  65. if arg-4 is set:
  66. set {prefix::%uuid of arg-3%} to colored arg-4
  67. send "{@prefix_msg}"
  68. stop
  69. if arg-2 is "suffix":
  70. if arg-3 is set:
  71. if arg-4 is set:
  72. set {suffix::%uuid of arg-3%} to colored arg-4
  73. send "{@suffix_msg}"
  74. stop
  75. if arg-1 is "clear":
  76. if arg-2 is set:
  77. delete {prefix::%uuid of arg-2%}
  78. delete {suffix::%uuid of arg-2%}
  79. send "{@prefix} &7リセットしました。"
  80. stop
  81. else:
  82. send "{@help}"
  83. stop
  84. if arg-1 is "help":
  85. send "&9==================================="
  86. send "{@prefix}"
  87. send "&9Command"
  88. send "&a↓&dランクを設定します"
  89. send "&6/rank set [prefix/suffix] %player% %rank%"
  90. send "&a↓設定したランクをリセットします。"
  91. send "&a/rank clear %player%"
  92. send "&a↓コマンド一覧を表示します"
  93. send "&b/rank help"
  94. send "&4/mute %player% %理由%"
  95. send "&a↓プレイヤーのMUTEを解除します。"
  96. send "&a/unmute %player% %理由%"
  97. send "&9==================================="
  98. stop
  99. else:
  100. send "&9==================================="
  101. send "{@prefix}"
  102. send "&9Command"
  103. send "&a↓&dランクを設定します"
  104. send "&6/rank set [prefix/suffix] %player% %rank%"
  105. send "&a↓設定したランクをリセットします。"
  106. send "&a/rank clear %player%"
  107. send "&a↓コマンド一覧を表示します"
  108. send "&b/rank help"
  109. send "&a↓プレイヤーをMUTEします。"
  110. send "&4/mute %player% %理由%"
  111. send "&a↓プレイヤーのMUTEを解除します。"
  112. send "&a/unmute %player% %理由%"
  113. send "&9==================================="
  114. stop
  115.  
  116. command /mute <text> <text>:
  117. permission: rank.changer
  118. trigger:
  119. if arg-1 is set:
  120. if arg-2 is set:
  121. set {mute::%uuid of arg-1%} to true
  122. broadcast "{@prefix} &4%arg-1%さんはMUTEにされました。"
  123. broadcast "{@prefix} &aby &6%player% &e理由: %arg-2%"
  124. stop
  125. else:
  126. send "{@prefix} &5理由をつけてください"
  127. stop
  128. else:
  129. send "{@prefix} 名前をつけてください"
  130. stop
  131.  
  132. command /unmute <text> <text>:
  133. permission: rank.changer
  134. trigger:
  135. if arg-1 is set:
  136. if arg-2 is set:
  137. set {mute::%uuid of arg-1%} to false
  138. broadcast "{@prefix} &a%arg-1%さんはMUTE解除されました。"
  139. broadcast "{@prefix} &aby &6%player% &e理由: %arg-2%"
  140. else:
  141. send "{@prefix} &5理由をつけてください"
  142. else:
  143. send "{@prefix} 名前をつけてください"
Add Comment
Please, Sign In to add comment