70sOn7

Mute

Feb 17th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.12 KB | None | 0 0
  1. # [=---------------------------------------------------------------=]
  2. # | Made By: 70sOn7 |
  3. # | Version: 1.2 |
  4. # | |
  5. # | Edit this below if have a decent knowledge of Skirpt! |
  6. # | |
  7. # | Any errors is on your behalf. |
  8. # | |
  9. # | Plugins: Skript, SkRayFall, SkQuery |
  10. # [=---------------------------------------------------------------=]
  11.  
  12. command /mute [<offlineplayer>] [<text>]:
  13. permission: essentials.mute
  14. permission message: &8(&c!&8) &7You can not do this!
  15. trigger:
  16. if arg-1 is not set:
  17. send "&8(&c!&8) &7/mute (Player) (Reason) - Type 'list' for a list of reasons!"
  18. stop
  19. if arg-2 is not set:
  20. wait 3 ticks
  21. open chest with 5 rows named "&8(&4&lMUTE GUI&8) &c%arg-1% &7&nPg 1" to player
  22. format slot 0 of player with glowing black stained glass named " " to be unstealable
  23. format slot 1 of player with glowing black stained glass named " " to be unstealable
  24. format slot 2 of player with glowing black stained glass named " " to be unstealable
  25. format slot 3 of player with glowing black stained glass named " " to be unstealable
  26. format slot 4 of player with glowing black stained glass named " " to be unstealable
  27. format slot 5 of player with glowing black stained glass named " " to be unstealable
  28. format slot 6 of player with glowing black stained glass named " " to be unstealable
  29. format slot 7 of player with glowing black stained glass named " " to be unstealable
  30. format slot 8 of player with glowing black stained glass named " " to be unstealable
  31. format slot 9 of player with glowing black stained glass named " " to be unstealable
  32. format slot 17 of player with glowing black stained glass named " " to be unstealable
  33. format slot 26 of player with glowing black stained glass named " " to be unstealable
  34. format slot 35 of player with glowing black stained glass named " " to be unstealable
  35. format slot 44 of player with glowing arrow named "&8(&4&LPAGE&8) &72" with lore "&7Click to go to Page 2!" to close then run [execute player command "mute %arg-1% pg2"]
  36. format slot 43 of player with glowing black stained glass named " " to be unstealable
  37. format slot 42 of player with glowing compass named "&4&LUNMUTE PLAYER" with lore "&7Click to unmute them!" to close then run [execute player command "mute %arg-1% unmute"]
  38. format slot 41 of player with glowing black stained glass named " " to be unstealable
  39. format slot 40 of player with glowing black stained glass named " " to be unstealable
  40. format slot 39 of player with glowing black stained glass named " " to be unstealable
  41. format slot 38 of player with glowing clock named "&4&LCHECK MUTE" with lore "&7Click to check there mute!" to close then run [execute player command "mute %arg-1% check"]
  42. format slot 37 of player with glowing black stained glass named " " to be unstealable
  43. format slot 18 of player with glowing black stained glass named " " to be unstealable
  44. format slot 27 of player with glowing black stained glass named " " to be unstealable
  45. format slot 36 of player with glowing black stained glass named " " to be unstealable
  46. format slot 20 of player with glowing diamond named "&4&lSPAM" with lore "&cTime: &715 MINUTES" to close then run [execute player command "mute %arg-1% spam"]
  47. format slot 21 of player with glowing diamond named "&4&lCURSING" with lore "&cTime: &720 MINUTES" to close then run [execute player command "mute %arg-1% cursing"]
  48. format slot 22 of player with glowing diamond named "&4&lDISRESPECT" with lore "&cTime: &730 MINUTES" to close then run [execute player command "mute %arg-1% dis"]
  49. format slot 23 of player with glowing diamond named "&4&lADVERTISING" with lore "&cTime: &71 HOUR" to close then run [execute player command "mute %arg-1% spam"]
  50. format slot 24 of player with glowing diamond named "&4&lINAPPROPRIATE BEHAVIOR" with lore "&cTime: &745 MINUTES" to close then run [execute player command "mute %arg-1% spam"]
  51. if arg-2 is "pg2":
  52. wait 3 ticks
  53. open chest with 5 rows named "&8(&4&lMUTE GUI&8) &c%arg-1% &7&nPg 2" to player
  54. format slot 0 of player with glowing black stained glass named " " to be unstealable
  55. format slot 1 of player with glowing black stained glass named " " to be unstealable
  56. format slot 2 of player with glowing black stained glass named " " to be unstealable
  57. format slot 3 of player with glowing black stained glass named " " to be unstealable
  58. format slot 4 of player with glowing black stained glass named " " to be unstealable
  59. format slot 5 of player with glowing black stained glass named " " to be unstealable
  60. format slot 6 of player with glowing black stained glass named " " to be unstealable
  61. format slot 7 of player with glowing black stained glass named " " to be unstealable
  62. format slot 8 of player with glowing black stained glass named " " to be unstealable
  63. format slot 9 of player with glowing black stained glass named " " to be unstealable
  64. format slot 17 of player with glowing black stained glass named " " to be unstealable
  65. format slot 26 of player with glowing black stained glass named " " to be unstealable
  66. format slot 35 of player with glowing black stained glass named " " to be unstealable
  67. format slot 44 of player with glowing black stained glass named " " to be unstealable
  68. format slot 43 of player with glowing black stained glass named " " to be unstealable
  69. format slot 42 of player with glowing compass named "&4&LUNMUTE PLAYER" with lore "&7Click to unmute them!" to close then run [execute player command "mute %arg-1% unmute"]
  70. format slot 41 of player with glowing black stained glass named " " to be unstealable
  71. format slot 40 of player with glowing black stained glass named " " to be unstealable
  72. format slot 39 of player with glowing black stained glass named " " to be unstealable
  73. format slot 38 of player with glowing clock named "&4&LCHECK MUTE" with lore "&7Click to check there mute!" to close then run [execute player command "mute %arg-1% check"]
  74. format slot 37 of player with glowing black stained glass named " " to be unstealable
  75. format slot 18 of player with glowing black stained glass named " " to be unstealable
  76. format slot 27 of player with glowing black stained glass named " " to be unstealable
  77. format slot 36 of player with glowing arrow named "&8(&4&LPAGE&8) &71" with lore "&7Click to go to Page 1!" to close then run [execute player command "mute %arg-1%"]
  78. format slot 20 of player with glowing diamond named "&4&lRACISM" with lore "&cTime: &71 HOUR" to close then run [execute player command "mute %arg-1% racism"]
  79. format slot 21 of player with glowing diamond named "&4&lCAPS" with lore "&cTime: &720 Min" to close then run [execute player command "mute %arg-1% caps"]
  80. format slot 22 of player with glowing emerald named "&4&lDDOS THREATS" with lore "&cTime: &7FOREVER" to close then run [execute player command "mute %arg-1% ddos threats"]
  81. format slot 23 of player with glowing emerald named "&4&lLEAKING INFO" with lore "&cTime: &7FOREVER" to close then run [execute player command "mute %arg-1% leaking info"]
  82. if {mute.%arg-1%} is true:
  83. if arg-2 is not "unmute" or "check":
  84. send "&8(&c!&8) &7This player is already muted!"
  85. stop
  86. if arg-1 is set:
  87. if arg-2 is set:
  88. if arg-2 is not "spam" or "cursing" or "ddos threats" or "leaking info" or "advert" or "advertising" or "swearing" or "racism" or "bypassing filter" or "dis" or "disrespect" or "behavior" or "caps" or "unmute" or "check" or "pg2":
  89. send "&8(&c!&8) &7Thats not a muting option!"
  90. send " &8(&c!&8) &7Spam, Swearing, DDos Threats, Leaking Info, Advertising, Racism, Behavior"
  91. send " &8(&c!&8) &7Use 'unmute' as a reason to unmute them!"
  92. stop
  93. if arg-2 is "dis" or "disrespect":
  94. set {mute.%arg-1%} to true
  95. broadcast "&8(&4&lMUTES&8)"
  96. broadcast " &4• &7%arg-1% was muted by %player% for Disrespect! &4[30 MINUTES]"
  97. set {mtime.%arg-1%} to now
  98. set {mby.%arg-1%} to player
  99. set {mt.%arg-1%} to "30 Minutes"
  100. set {mr.%arg-1%} to "Disrespect"
  101. set {md.%arg-1%} to "Yes"
  102. wait 30 minutes
  103. if {mute.%arg-1%} is true:
  104. delete {mute.%arg-1%}
  105. delete {mtime.%arg-1%}
  106. delete {mby.%arg-1%}
  107. delete {mt.%arg-1%}
  108. delete {mr.%arg-1%}
  109. set {md.%arg-1%} to "No"
  110. send "&8(&c&l!&8) &7You have been unmuted!" to arg 1
  111. if arg-2 is "spam" or "spamming":
  112. set {mute.%arg-1%} to true
  113. broadcast "&8(&4&lMUTES&8)"
  114. broadcast " &4• &7%arg-1% was muted by %player% for Spamming! &4[15 MINUTES]"
  115. set {mtime.%arg-1%} to now
  116. set {mby.%arg-1%} to player
  117. set {mt.%arg-1%} to "15 Minutes"
  118. set {mr.%arg-1%} to "Spamming"
  119. set {md.%arg-1%} to "Yes"
  120. wait 15 minutes
  121. if {mute.%arg-1%} is true:
  122. delete {mute.%arg-1%}
  123. delete {mtime.%arg-1%}
  124. delete {mby.%arg-1%}
  125. delete {mt.%arg-1%}
  126. delete {mr.%arg-1%}
  127. set {md.%arg-1%} to "No"
  128. send "&8(&c&l!&8) &7You have been unmuted!" to arg 1
  129. if arg-2 is "cursing" or "swearing":
  130. set {mute.%arg-1%} to true
  131. broadcast "&8(&4&lMUTES&8)"
  132. broadcast " &4• &7%arg-1% was muted by %player% for Cursing! &4[20 MINUTES]"
  133. set {mtime.%arg-1%} to now
  134. set {mby.%arg-1%} to player
  135. set {mt.%arg-1%} to "20 Minutes"
  136. set {mr.%arg-1%} to "Cursing"
  137. set {md.%arg-1%} to "Yes"
  138. wait 20 minutes
  139. if {mute.%arg-1%} is true:
  140. delete {mute.%arg-1%}
  141. delete {mtime.%arg-1%}
  142. delete {mby.%arg-1%}
  143. delete {mt.%arg-1%}
  144. delete {mr.%arg-1%}
  145. set {md.%arg-1%} to "No"
  146. send "&8(&c&l!&8) &7You have been unmuted!" to arg 1
  147. if arg-2 is "ddos threats":
  148. set {mute.%arg-1%} to true
  149. broadcast "&8(&4&lMUTES&8)"
  150. broadcast " &4• &7%arg-1% was muted by %player% for DDos Threats! &4[FOREVER]"
  151. kick arg 1 due to "%nl%&cYou have been banned from Herotic!%nl%%nl%&f Reason: &7DDos Threats%nl%&f Ban ID: &7[%random integer from 10000 to 99999%]"
  152. ban arg 1 due to "%nl%&cYou have been banned from Herotic!%nl%%nl%&f Reason: &7DDos Threats%nl%&f Ban ID: &7[%random integer from 1000000 to 9999999%]"
  153. loop all players:
  154. if loop-player has permission "server.ban.notify":
  155. send "&c%arg-1% was banned by %player% for DDos Threats!" to loop-player
  156. set {mtime.%arg-1%} to now
  157. set {mby.%arg-1%} to player
  158. set {mt.%arg-1%} to "Forever"
  159. set {mr.%arg-1%} to "DDos Threats"
  160. set {md.%arg-1%} to "Yes"
  161. if arg-2 is "leaking info":
  162. set {mute.%arg-1%} to true
  163. broadcast "&8(&4&lMUTES&8)"
  164. broadcast " &4• &7%arg-1% was muted by %player% for Leaking Private Info! &4[FOREVER]"
  165. kick arg 1 due to "&cYou have been banned from Herotic!&n&n&f Reason: &7Leaking Private Info&n&f Ban ID: &7[%random integer from 10000 to 99999%]"
  166. ban arg 1 due to "&cYou have been banned from Herotic!&n&n&f Reason: &7Leaking Private Info&n&f Ban ID: &7[%random integer from 10000 to 99999%]"
  167. loop all players:
  168. if loop-player has permission "server.ban.notify":
  169. send "&c%arg-1% was banned by %player% for Leaking Private Info!" to loop-player
  170. set {mtime.%arg-1%} to now
  171. set {mby.%arg-1%} to player
  172. set {mt.%arg-1%} to "Forever"
  173. set {mr.%arg-1%} to "Leaking Private Info"
  174. set {md.%arg-1%} to "Yes"
  175. if arg-2 is "advertising" or "advert":
  176. set {mute.%arg-1%} to true
  177. broadcast "&8(&4&lMUTES&8)"
  178. broadcast " &4• &7%arg-1% was muted by %player% for Advertisment! &4[1 HOUR]"
  179. set {mtime.%arg-1%} to now
  180. set {mby.%arg-1%} to player
  181. set {mt.%arg-1%} to "1 Hour"
  182. set {mr.%arg-1%} to "Advertisement"
  183. set {md.%arg-1%} to "Yes"
  184. wait 1 hour
  185. if {mute.%arg-1%} is true:
  186. delete {mute.%arg-1%}
  187. delete {mtime.%arg-1%}
  188. delete {mby.%arg-1%}
  189. delete {mt.%arg-1%}
  190. delete {mr.%arg-1%}
  191. set {md.%arg-1%} to "No"
  192. send "&8(&c&l!&8) &7You have been unmuted!" to arg 1
  193. if arg-2 is "unmute":
  194. if {mute.%arg-1%} is not set:
  195. send "&8(&c!&8) &7This player isnt muted!"
  196. stop
  197. if {mute.%arg-1%} is true:
  198. send "&8(&c!&8) &7You have unmuted %arg-1%"
  199. send "&8(&c&l!&8) &7You have been unmuted!" to arg 1
  200. delete {mtime.%arg-1%}
  201. delete {mby.%arg-1%}
  202. delete {mt.%arg-1%}
  203. delete {mr.%arg-1%}
  204. set {md.%arg-1%} to "No"
  205. delete {mute.%arg-1%}
  206. if arg-2 is "check":
  207. if {mute.%arg-1%} is not set:
  208. send "&8(&4&l%arg-1%&8)"
  209. send ""
  210. send "&cIs Muted: &fNo"
  211. if {mute.%arg-1%} is true:
  212. set {_ctime} to now
  213. send "&8(&4&l%arg-1%&8)"
  214. send ""
  215. send "&cIs Muted: &f%{md.%arg-1%}%"
  216. send "&cMuted By: &f%{mby.%arg-1%}%"
  217. send "&cMute Date: &f%{mtime.%arg-1%}%"
  218. send "&cCurrent Date: &f%{_ctime}%"
  219. send "&cMute Time: &f%{mt.%arg-1%}%"
  220. send "&cMute Reason: &f%{mr.%arg-1%}%"
  221. if arg-2 is "behavior":
  222. set {mute.%arg-1%} to true
  223. broadcast "&8(&4&lMUTES&8)"
  224. broadcast " &4• &7%arg-1% was muted by %player% for Inappropriate Behavior! &4[45 MINUTES]"
  225. set {mtime.%arg-1%} to now
  226. set {mby.%arg-1%} to player
  227. set {mt.%arg-1%} to "45 Minutes"
  228. set {mr.%arg-1%} to "Inappropriate Behavior"
  229. set {md.%arg-1%} to "Yes"
  230. wait 45 minutes
  231. if {mute.%arg-1%} is true:
  232. delete {mute.%arg-1%}
  233. delete {mtime.%arg-1%}
  234. delete {mby.%arg-1%}
  235. delete {mt.%arg-1%}
  236. delete {mr.%arg-1%}
  237. set {md.%arg-1%} to "No"
  238. send "&8(&c&l!&8) &7You have been unmuted!" to arg 1
  239. if arg-2 is "racism":
  240. set {mute.%arg-1%} to true
  241. broadcast "&8(&4&lMUTES&8)"
  242. broadcast " &4• &7%arg-1% was muted by %player% for Racism! &4[1 HOUR]"
  243. set {mtime.%arg-1%} to now
  244. set {mby.%arg-1%} to player
  245. set {mt.%arg-1%} to "1 Hour"
  246. set {mr.%arg-1%} to "Racism"
  247. set {md.%arg-1%} to "Yes"
  248. wait 1 hour
  249. if {mute.%arg-1%} is true:
  250. delete {mute.%arg-1%}
  251. delete {mtime.%arg-1%}
  252. delete {mby.%arg-1%}
  253. delete {mt.%arg-1%}
  254. delete {mr.%arg-1%}
  255. set {md.%arg-1%} to "No"
  256. send "&8(&c&l!&8) &7You have been unmuted!" to arg 1
  257. if arg-2 is "caps":
  258. set {mute.%arg-1%} to true
  259. broadcast "&8(&4&lMUTES&8)"
  260. broadcast " &4• &7%arg-1% was muted by %player% for Caps! &4[20 MINUTES]"
  261. set {mtime.%arg-1%} to now
  262. set {mby.%arg-1%} to player
  263. set {mt.%arg-1%} to "20 Minutes"
  264. set {mr.%arg-1%} to "Caps"
  265. set {md.%arg-1%} to "Yes"
  266. wait 20 minutes
  267. if {mute.%arg-1%} is true:
  268. delete {mute.%arg-1%}
  269. delete {mtime.%arg-1%}
  270. delete {mby.%arg-1%}
  271. delete {mt.%arg-1%}
  272. delete {mr.%arg-1%}
  273. set {md.%arg-1%} to "No"
  274. send "&8(&c&l!&8) &7You have been unmuted!" to arg 1
  275.  
  276. on chat:
  277. if {mute.%player%} is true:
  278. cancel event
  279. set {_ctime} to now
  280. send "&8(&4&lMUTED&8)"
  281. send " &cMuted By: &f%{mby.%player%}%"
  282. send " &cMute Date: &f%{mtime.%player%}%"
  283. send " &cMute Time: &f%{mt.%player%}%"
  284. send " &cCurrent Time: &f%{_ctime}%"
  285. stop
Add Comment
Please, Sign In to add comment