Advertisement
namekuzi

Untitled

Dec 12th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.49 KB | None | 0 0
  1. on damage:
  2. damage cause is fall:
  3. {DoubleJump%victim's uuid%} is not set:
  4. cancel event
  5.  
  6. on join:
  7. broadcast "&7[&c+&7]&e%player%"
  8.  
  9. On first join:
  10. broadcast "&7[&c*&7]&e%player%"
  11.  
  12. on quit:
  13. broadcast "&7[&c-&7]&e%player%"
  14.  
  15. options:
  16. owner: namekuzi_sio #一人まで指定できます
  17. prefix: &fWhitelist>&r
  18.  
  19. on skript load:
  20. if {whitelist.toggle} is not set:
  21. set {whitelist.toggle} to false
  22. stop
  23.  
  24. on command:
  25. if full command is "minecraft:whitelist":
  26. if player has permission "minecraft.command.whitelist":
  27. send "&cそのコマンドは使用できません"
  28. cancel event
  29. stop
  30.  
  31. command /whitelist [<text>] [<text>]:
  32. aliases: /wlist
  33. permission: minecraft.command.whitelist
  34. permission message: &cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error.
  35. trigger:
  36. if arg 1 is not set:
  37. send "{@prefix} &c使用法: /whitelist help"
  38. stop
  39. if arg 1 is "help":
  40. send "&d&l&m-----------------------&r &d&lHelp &d&l&m-----------------------&r"
  41. send "&b/whitelist add <名前> - 指定したプレイヤーをホワイトリストに追加します"
  42. send "&b/whitelist remove <名前> - 指定したプレイヤーをホワイトリストから消去します"
  43. send "&b/whitelist on - ホワイトリストを有効にします"
  44. send "&b/whitelist off - ホワイトリストを無効にします"
  45. send "&b/whitelist list - ホワイトリストに登録されているプレイヤーの一覧を表示します"
  46. send "&b/whitelist reload - ホワイトリストを再読み込みします"
  47. send "&b/whitelist kick - ホワイトリストに登録されていないプレイヤーをキックします"
  48. send "&d&l&m----------------------------------------------------&r"
  49. stop
  50. if arg 1 is "on":
  51. if {whitelist.toggle} is false:
  52. set {whitelist.toggle} to true
  53. send "{@prefix} &aホワイトリストを有効にしました"
  54. stop
  55. if {whitelist.toggle} is true:
  56. send "{@prefix} &c既にホワイトリストを有効にしています"
  57. stop
  58. if arg 1 is "off":
  59. if {whitelist.toggle} is true:
  60. set {whitelist.toggle} to false
  61. send "{@prefix} &3ホワイトリストを無効にしました"
  62. stop
  63. if {whitelist.toggle} is false:
  64. send "{@prefix} &c既にホワイトリストを無効にしています"
  65. stop
  66. if arg 1 is "add":
  67. if arg 2 is not set:
  68. send "{@prefix} &cプレイヤーを指定してください"
  69. stop
  70. if arg 2 is set:
  71. if {whitelist::%arg 2%} is set:
  72. send "{@prefix} &c%arg 2%さんは既にホワイトリストに登録しています"
  73. stop
  74. else:
  75. set {whitelist::%arg 2%} to 0
  76. send "{@prefix} &a%arg 2%さんをホワイトリストに登録しました"
  77. stop
  78. if arg 1 is "remove" or "rem":
  79. if arg 2 is not set:
  80. send "{@prefix} &cプレイヤーを指定してください"
  81. stop
  82. if arg 2 is "-all":
  83. delete {whitelist::*}
  84. send "{@prefix} &d全てのプレイヤーをホワイトリストから消去しました"
  85. stop
  86. if arg 2 is set:
  87. if {whitelist::%arg 2%} is set:
  88. delete {whitelist::%arg 2%}
  89. send "{@prefix} &3%arg 2%をホワイトリストから削除しました"
  90. stop
  91. else:
  92. send "{@prefix} &c%arg 2%さんはホワイトリストに登録されていません"
  93. stop
  94. if arg 1 is "list":
  95. if {whitelist::*} is not set:
  96. send "{@prefix} &c現在ホワイトリストに登録されているプレイヤーはいません"
  97. stop
  98. set {_count} to 0
  99. send "&6&l&m--------&r &6&lList &6&l&m--------&r"
  100. loop {whitelist::*}:
  101. add 1 to {_count}
  102. send "&b%{_count}%: %loop-index%"
  103. send "&6&l&m----------------------&r"
  104. stop
  105. if arg 1 is "reload":
  106. if {whitelist.toggle} is not set:
  107. set {whitelist.toggle} to false
  108. send "{@prefix} &dホワイトリストを再読み込みしました"
  109. stop
  110. if arg 1 is "kick":
  111. if {whitelist.toggle} is false:
  112. send "{@prefix} &cホワイトリストが有効の時のみ使用できます"
  113. stop
  114. loop all players:
  115. if {whitelist::%loop-player%} is not set:
  116. if loop-player is not "{@owner}":
  117. if loop-player is not "%player%":
  118. kick the player by reason of "You are not whitelisted on this server!"
  119. send "{@prefix} &2ホワイトリストに登録されていないプレイヤーをキックしました"
  120. stop
  121. else:
  122. send "{@prefix} &c無効なテキストです"
  123. stop
  124.  
  125. command /mute [<offlineplayer>] [<text>]:
  126. aliases: mute
  127. permission: mute
  128. permission message: &cnamekuzi&aLife&dOnline&d>>> &cあなたは使えません。
  129. trigger:
  130. if arg-1 is not set:
  131. send "&6------------------------------&cnamekuzi&aLife&dOnline&d------------------------------"
  132. send "&c/mute <player> <text>"
  133. send "&c<player>はMuteする人のMCID"
  134. send "&c<text>は理由"
  135. send "&6--------------------------------------------------------------------------------"
  136. stop
  137. if arg-2 is not set:
  138. send "&6------------------------------&cnamekuzi&aLife&dOnline&d------------------------------"
  139. send "&c/mute <player> <text>"
  140. send "&c<player>はMuteする人のMCID"
  141. send "&c<text>は理由"
  142. send "&6--------------------------------------------------------------------------------"
  143. stop
  144. if {mute::%arg-1%} is not set:
  145. set {mute::%arg-1%} to true
  146. broadcast "System&d>>> &6%arg-1%が%arg-2%の理由で%player%にMuteされました。"
  147. stop
  148. if {mute::%arg-1%} is false:
  149. set {mute::%arg-1%} to true
  150. broadcast "System&d>>> &c%arg-1%が%arg-2%の理由で%player%にMuteされました。"
  151. stop
  152. if {mute::%arg-1%} is true:
  153. set {mute::%arg-1%} to false
  154. broadcast "System&d>>> &c%arg-1%が%arg-2%の理由で%player%にMute解除されました。"
  155. stop
  156.  
  157. on chat:
  158. if {mute::%player%} is true:
  159. cancel event
  160. send "&cnamekuzi&aLife&dOnline&d>>> &cMuteされているため話せません。"
  161.  
  162. on command "/me":
  163. if {mute::%player%} is true:
  164. cancel event
  165. send "&cnamekuzi&aLife&dOnline&d>>> &cMuteされているため話せません。"
  166.  
  167. on command "/tell":
  168. if {mute::%player%} is true:
  169. cancel event
  170. send "&cAdventure&aLife&dOnline&d>>> &cMuteされているため話せません。"
  171.  
  172. on command "/w":
  173. if {mute::%player%} is true:
  174. cancel event
  175. send "&cnamekuzi&aLife&dOnline&d>>> &cMuteされているため話せません。"
  176.  
  177. on command "/r":
  178. if {mute::%player%} is true:
  179. cancel event
  180. send "&cAdventure&aLife&dOnline&d>>> &cMuteされているため話せません。"
  181.  
  182. on command "/msg":
  183. if {mute::%player%} is true:
  184. cancel event
  185. send "&cnamekuzi&aLife&dOnline&d>>> &cMuteされているため話せません。"
  186.  
  187. on command "/message":
  188. if {mute::%player%} is true:
  189. cancel event
  190. send "&cnamekuzi&aLife&dOnline&d>>> &cMuteされているため話せません。"
  191.  
  192. on command "/t":
  193. if {mute::%player%} is true:
  194. cancel event
  195. send "&cnamekuzi&aLife&dOnline&d>>> &cMuteされているため話せません。"
  196.  
  197. on death of player:
  198. broadcast "&7&l[&c%attacker%&7&l]&6-->&7&l[&b%victim%&7&l]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement