kunihiko_sato

Untitled

Oct 8th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.41 KB | None | 0 0
  1. options:
  2. prefix: &8[Mute]
  3.  
  4. on chat:
  5. if {%player%.muted} is not set:
  6. set {%player%.muted} is false
  7. if {%player%.muted} is true:
  8. cancel event
  9. send "{@prefix} &cあなたは&6%{%player%.sender}%&cにミュートされているため発言ができません。ミュートされている理由: %{%player%.reason}%"
  10. if {%player%.mute.player.set} is true:
  11. cancel event
  12. if message is "cancel" or "Cancel" or "CANCEL":
  13. set {%player%.mute.player.set} to false
  14. send "&aSet cancelled."
  15. execute console command "lcjapanize %player% on"
  16. else:
  17. set {%player%.muting.player} to message
  18. send "%message%"
  19. send "&7Setted mute player: %message%"
  20. wait 20 ticks
  21. send "&aPlease enter a mute reason to chat (Player: %{%player%.muting.player}%) [Set cancel is enter a ""Cancel"" to chat]"
  22. set {%player%.mute.player.set} to false
  23. set {%player%.mute.reason.set} to true
  24. if {%player%.mute.reason.set} is true:
  25. cancel event
  26. if message is "cancel" or "Cancel" or "CANCEL":
  27. set {%player%.mute.reason.set} to false
  28. send "&aSet cancelled."
  29. execute console command "lcjapanize %player% on"
  30. else:
  31. set {%player%.muting.reason} to message
  32. send "%message%"
  33. send "&bSet complete &7(Player: %{%player%.muting.player}% Reason: %{%player%.muting.reason}%)"
  34. execute player command "mute %{%player%.muting.player}% %{%player%.muting.reason}%"
  35. set {%player%.mute.reason.set} to false
  36. execute console command "lcjapanize %player% on"
  37. set {%player%.muting.player} to null
  38. set {%player%.muting.reason} to null
  39. if {%player%.unmute.player.set} is true:
  40. cancel event
  41. if message is "cancel" or "Cancel" or "CANCEL":
  42. set {%player%.unmute.player.set} to false
  43. send "&aSet cancelled."
  44. execute console command "lcjapanize %player% on"
  45. else:
  46. set {%player%.unmuting.player} to message
  47. send "%message%"
  48. send "&bSet complete &7(Player: %message%)"
  49. execute player command "unmute %{%player%.muting.player}%"
  50. set {%player%.unmute.player.set} to false
  51. set {%player%.unmuting.player} to null
  52. execute console command "lcjapanize %player% on"
  53.  
  54. on command "/msg":
  55. sender is player:
  56. if {%player%.muted} is true:
  57. cancel event
  58. send "{@prefix} &cあなたは&6%{%player%.sender}%&cにミュートされているため&4/msg&cコマンドを実行できません。ミュートされている理由: %{%player%.reason}%"
  59.  
  60. on command "/message":
  61. sender is player:
  62. if {%player%.muted} is true:
  63. cancel event
  64. send "{@prefix} &cあなたは&6%{%player%.sender}%&cにミュートされているため&4/message&cコマンドを実行できません。ミュートされている理由: %{%player%.reason}%"
  65.  
  66. on command "/w":
  67. sender is player:
  68. if {%player%.muted} is true:
  69. cancel event
  70. send "{@prefix} &cあなたは&6%{%player%.sender}%&cにミュートされているため&4/w&cコマンドを実行できません。ミュートされている理由: %{%player%.reason}%"
  71.  
  72. on command "/tellraw":
  73. sender is player:
  74. if {%player%.muted} is true:
  75. cancel event
  76. send "{@prefix} &cあなたは&6%{%player%.sender}%&cにミュートされているため&4/tellraw&cコマンドを実行できません。ミュートされている理由: %{%player%.reason}%"
  77.  
  78. on command "/say":
  79. sender is player:
  80. if {%player%.muted} is true:
  81. cancel event
  82. send "{@prefix} &cあなたは&6%{%player%.sender}%&cにミュートされているため&4/say&cコマンドを実行できません。ミュートされている理由: %{%player%.reason}%"
  83.  
  84. on command "/me":
  85. sender is player:
  86. if {%player%.muted} is true:
  87. cancel event
  88. send "{@prefix} &cあなたは&6%{%player%.sender}%&cにミュートされているため&4/me&cコマンドを実行できません。ミュートされている理由: %{%player%.reason}%"
  89.  
  90. on command "/r":
  91. sender is player:
  92. if {%player%.muted} is true:
  93. cancel event
  94. send "{@prefix} &cあなたは&6%{%player%.sender}%&cにミュートされているため&4/r&cコマンドを実行できません。ミュートされている理由: %{%player%.reason}%"
  95.  
  96. on command "/reply":
  97. sender is player:
  98. if {%player%.muted} is true:
  99. cancel event
  100. send "{@prefix} &cあなたは&6%{%player%.sender}%&cにミュートされているため&4/reply&cコマンドを実行できません。ミュートされている理由: %{%player%.reason}%"
  101.  
  102. on command "/tell":
  103. sender is player:
  104. if {%player%.muted} is true:
  105. cancel event
  106. send "{@prefix} &cあなたは&6%{%player%.sender}%&cにミュートされているため&4/tell&cコマンドを実行できません。ミュートされている理由: %{%player%.reason}%"
  107.  
  108. command /mutemenu:
  109. permission: mute.menu
  110. permission message: &cYou don't enough permission.
  111. aliases: /mute:mutemenu
  112. trigger:
  113. open chest with 1 row named "Mute Menu" to player
  114. format slot 3 of player with paper named "&cMute a player" to close then run [execute player command "mute-set"]
  115. format slot 5 of player with map named "&aUnmute a player" to close then run [execute player command "unmute-set"]
  116.  
  117. command /mute-set:
  118. permission: mute.set
  119. permission message: &4You don't permitted use this command!
  120. aliases: /mute:mute-set
  121. trigger:
  122. execute console command "lcjapanize %player% off"
  123. set {%player%.mute.player.set} to true
  124. send "&aPlease enter a player name to chat. [Set cancel is enter a ""Cancel"" to chat.]"
  125.  
  126. command /unmute-set:
  127. permission: mute.set
  128. permission message: &4You don't permitted use this command!
  129. aliases: /mute:unmute-set
  130. trigger:
  131. execute console command "lcjapanize %player% off"
  132. set {%player%.unmute.player.set} to true
  133. send "&aPlease enter a player name to chat. [Set cancel is enter a ""Cancel"" to chat]"
  134.  
  135. command /check-ip [<player>]:
  136. permission: mute.command.check-ip
  137. permission message: &4Are you not permitted check player has ips!
  138. aliases: /mute:check-ip, /check-ips, /mute:check-ips
  139. trigger:
  140. if arg-1 is set:
  141. send "&bCheck complete! &a""&c%arg 1%&6's ip is &e%ip of arg 1%&a"""
  142. else:
  143. send "{@prefix} &c使用法: &7/check-ip <Player>"
  144.  
  145. command /mute [<player>] [<text>]:
  146. permission: mute.command.mute
  147. permission message: &cYou don't enough permission.
  148. aliases: /mute:mute
  149. usage: &7/mute <対象のプレイヤー> <理由>
  150. trigger:
  151. if arg-1 is set:
  152. if arg-2 is set:
  153. if {%arg 1%.muted} is false:
  154. set {%arg 1%.muted} to true
  155. set {%arg 1%.reason} to arg 2
  156. set {%arg 1%.sender} to player
  157. broadcast "{@prefix} &6%player%&cが&4%arg 1%&cをミュートしました。ミュートした理由: %{%arg 1%.reason}%"
  158. else:
  159. send "{@prefix} &4%arg 1%&cはミュートされているため、ミュートできませんでした。"
  160. else:
  161. send "{@prefix} &c使用法: &7/mute <プレイヤー名> <理由>"
  162. else:
  163. send "{@prefix} &c使用法: &7/mute <プレイヤー名> <理由>"
  164.  
  165. command /unmute [<player>]:
  166. permission: mute.command.unmute
  167. permission message: &cYou don't enough permission.
  168. aliases: /mute:unmute
  169. usage: &7/unmute <対象のプレイヤー>
  170. trigger:
  171. if arg-1 is set:
  172. if {%arg 1%.muted} is true:
  173. set {%arg 1%.muted} to false
  174. broadcast "{@prefix} &b%player%&aが&e%arg 1%&aのミュートを解除しました。"
  175. else:
  176. send "{@prefix} &4%arg 1%&cはミュートされていないため、ミュートを解除できませんでした。"
  177. else:
  178. send "{@prefix} &c使用法: &7/unmute <プレイヤー名>"
Advertisement
Add Comment
Please, Sign In to add comment