Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.13 KB | None | 0 0
  1. command /ban [<offlineplayer>] [<text>]:
  2. trigger:
  3. if player does not have permission "ban.use":
  4. send "&cYou are not permitted to run this command!"
  5. stop
  6. if arg-1 is not set:
  7. send "&c/ban (player) [reason] [-s]"
  8. stop
  9. if arg-1 has permission "ban.use":
  10. send "&cThat player cannot be banned!"
  11. stop
  12. if player is not set:
  13. set {_p} to "CONSOLE"
  14. else:
  15. set {_p} to player
  16. if arg-1 is banned:
  17. send "&cThat player is already banned!"
  18. stop
  19. if arg-2 is not set:
  20. set {_r} to "N/A"
  21. else:
  22. set {_r} to arg-2
  23. if {_r} contains "-s":
  24. replace all " -s" and "-s " with "" in {_r}
  25. set {_silent} to true
  26. if {_silent} is set:
  27. loop all players:
  28. if loop-player has permission "ban.use":
  29. send "&7&o(SILENT) &3%{_p}% &7banned &3%arg-1% &7for &c%{_r}% &7[FOREVER]" to loop-player
  30. else:
  31. broadcast "&3%{_p}% &7banned &3%arg-1% &7for &c%{_r}% &7[FOREVER]"
  32. ban arg-1 due to {_r}
  33. if arg-1 is online:
  34. kick arg-1 due to "&7You are now banned! &9Reason: &7%{_r}%"
  35. add arg-1 to {banlist::*}
  36.  
  37. command /kick [<player>] [<text>]:
  38. trigger:
  39. if player does not have permission "kick.use":
  40. send "&cYou are not permitted to run this command!"
  41. stop
  42. if arg-1 is not set:
  43. send "&c/kick (player) [reason] [-s]"
  44. stop
  45. if arg-1 has permission "kick.use":
  46. send "&cThat player cannot be kicked!"
  47. stop
  48. if arg-2 is not set:
  49. set {_r} to "N/A"
  50. else:
  51. set {_r} to arg-2
  52. if player is not set:
  53. set {_p} to "CONSOLE"
  54. else:
  55. set {_p} to player
  56. if {_r} contains "-s":
  57. replace all " -s" and "-s " with "" in {_r}
  58. set {_silent} to true
  59. if {_silent} is set:
  60. loop all players:
  61. if loop-player has permission "ban.use":
  62. send "&7&o(SILENT) &3%{_p}% &7kicked &3%arg-1% &7for &c%{_r}%" to loop-player
  63. else:
  64. broadcast "&3%{_p}% &7kicked &3%arg-1% &7for &c%{_r}%"
  65. kick arg-1 due to "&7You were kicked! &9Reason: &7%{_r}%"
  66.  
  67. command /tempban [<offlineplayer>] [<text>] [<timespan>]:
  68. trigger:
  69. if player does not have permission "tempban.use":
  70. send "&cYou are not permitted to run this command!"
  71. stop
  72. if arg-2 is not set:
  73. send "&c/tempban (player) [reason] [-s] (time)"
  74. stop
  75. if arg-1 has permission "tempban.use":
  76. send "&cThat player cannot be banned!"
  77. stop
  78. if player is not set:
  79. set {_p} to "CONSOLE"
  80. else:
  81. set {_p} to player
  82. if arg-1 is banned:
  83. send "&cThat player is already banned!"
  84. stop
  85. if arg-2 is not set:
  86. set {_r} to "N/A"
  87. else:
  88. set {_r} to arg-2
  89. set {_l} to "%arg-3%"
  90. set {_l} to "%capitalized {_l}%"
  91. if {_r} contains "-s":
  92. replace all " -s" and "-s " with "" in {_r}
  93. set {_silent} to true
  94. if {_silent} is set:
  95. loop all players:
  96. if loop-player has permission "tempban.use":
  97. send "&7&o(SILENT) &3%{_p}% &7banned &3%arg-1% &7for &c%{_r}% &7[%{_l}%]" to loop-player
  98. else:
  99. broadcast "&3%{_p}% &7banned &3%arg-1% &7for &c%{_r}% &7[%{_l}%]"
  100. ban arg-1 due to {_r}
  101. if arg-1 is online:
  102. kick arg-1 due to "&7You are now banned! &9Reason: &7%{_r}% &f &f &f &f &9Length: &7%arg-3%"
  103. add arg-1 to {banlist::*}
  104. set {%arg-1%.banned} to now
  105. set {%arg-1%.length} to arg-3
  106.  
  107. command /broadcast [<text>]:
  108. aliases: /bc, /announce, /a
  109. trigger:
  110. if player does not have permission "broadcast.use":
  111. send "&cYou are not permitted to run this command!"
  112. stop
  113. broadcast ""
  114. broadcast "&c&o[BROADCAST] &7%colored arg-1%"
  115. broadcast ""
  116. loop all players:
  117. if loop-player has permission "broadcast.use":
  118. if loop-player is not player:
  119. if player is a player:
  120. set {_p} to player
  121. else:
  122. set {_p} to "CONSOLE"
  123. send "&9%{_p}%&7 used broadcast!" to loop-player
  124.  
  125. command /mute [<offlineplayer>] [<text>] [<timespan>]:
  126. trigger:
  127. if player does not have permission "mute.use":
  128. send "&cYou are not permitted to run this command!"
  129. stop
  130. if arg-2 is not set:
  131. send "&c/mute (player) [reason] [-s] (time)"
  132. stop
  133. if arg-1 has permission "mute.use":
  134. send "&cThat player cannot be muted!"
  135. stop
  136. if player is not set:
  137. set {_p} to "CONSOLE"
  138. else:
  139. set {_p} to player
  140. if {%arg-1%.muted} is set:
  141. send "&cThat player is already muted!"
  142. stop
  143. if arg-2 is not set:
  144. set {_r} to "N/A"
  145. else:
  146. set {_r} to arg-2
  147. set {_l} to "%arg-3%"
  148. set {_l} to "%capitalized {_l}%"
  149. if {_r} contains "-s":
  150. replace all " -s" and "-s " with "" in {_r}
  151. set {_silent} to true
  152. if {_silent} is set:
  153. loop all players:
  154. if loop-player has permission "mute.use":
  155. send "&7&o(SILENT) &3%{_p}% &7muted &3%arg-1% &7for &c%{_r}% &7[%{_l}%]" to loop-player
  156. else:
  157. broadcast "&3%{_p}% &7muted &3%arg-1% &7for &c%{_r}% &7[%{_l}%]"
  158. set {muted.%arg-1%} to true
  159. add arg-1 to {mutelist::*}
  160. set {%arg-1%.muted} to now
  161. set {%arg-1%.mutelength} to arg-3
  162.  
  163. command /unmute [<offlineplayer>] [<text>]:
  164. trigger:
  165. if player does not have permission "mute.use":
  166. send "&cYou are not permitted to run this command!"
  167. stop
  168. if arg-1 is not set:
  169. send "&c/mute (player) [-s]"
  170. stop
  171. if arg-1 has permission "mute.use":
  172. send "&cYou cannot unmute this player!"
  173. stop
  174. if player is not set:
  175. set {_p} to "CONSOLE"
  176. else:
  177. set {_p} to player
  178. if {%arg-1%.muted} is not set:
  179. send "&cThat player is not muted!"
  180. stop
  181. if {_r} contains "-s":
  182. replace all " -s" and "-s " with "" in {_r}
  183. set {_silent} to true
  184. if {_silent} is set:
  185. loop all players:
  186. if loop-player has permission "mute.use":
  187. send "&7&o(SILENT) &3%{_p}% &7unmuted &3%arg-1%" to loop-player
  188. else:
  189. broadcast "&3%{_p}% &7unmuted &3%arg-1%"
  190. clear {muted.%arg-1%}
  191. remove arg-1 from {mutelist::*}
  192. clear {%arg-1%.muted}
  193. clear {%arg-1%.mutelength}
  194.  
  195. every 1 second:
  196. loop {banlist::*}:
  197. if {%loop-value%.banned} is set:
  198. if difference between now and {%loop-value%.banned} >= {%loop-value%.length}:
  199. unban loop-value
  200. remove loop-value from {banlist::*}
  201. clear {%loop-value%.banned}
  202. clear {%loop-value%.length}
  203. loop {mutelist::*}:
  204. if {%loop-value%.muted} is set:
  205. if difference between now and {%loop-value%.muted} >= {%loop-value%.mutelength}:
  206. clear {muted.%loop-value%}
  207. remove loop-value from {mutelist::*}
  208. clear {%loop-value%.muted}
  209. clear {%loop-value%.mutelength}
  210.  
  211. command /unban [<offlineplayer>] [<text>]:
  212. trigger:
  213. if player does not have permission "unban.use":
  214. send "&cYou are not permitted to run this command!"
  215. stop
  216. if arg-1 is not set:
  217. send "&c/unban (player) [-s]"
  218. stop
  219. if player is not set:
  220. set {_p} to "CONSOLE"
  221. else:
  222. set {_p} to player
  223. if arg-1 is not banned:
  224. send "&cThat player is not banned!"
  225. stop
  226. if arg-2 contains "-s":
  227. replace all " -s" and "-s " with "" in {_r}
  228. set {_silent} to true
  229. if {_silent} is set:
  230. loop all players:
  231. if loop-player has permission "ban.use":
  232. send "&7&o(SILENT) &3%{_p}% &7unbanned &3%arg-1%" to loop-player
  233. else:
  234. broadcast "&3%{_p}% &7unbanned &3%arg-1%"
  235. unban arg-1
  236. remove arg-1 from {banlist::*}
  237.  
  238. command /warn [<offlineplayer>] [<text>]:
  239. trigger:
  240. if player does not have permission "warn.use":
  241. send "&cYou are not permitted to run this command!"
  242. stop
  243. if player is not set:
  244. set {_p} to "CONSOLE"
  245. else:
  246. set {_p} to player
  247. if arg-2 is not set:
  248. send "&c/warn (player) (reason)"
  249. stop
  250. if arg-1 has permission "warn.use":
  251. send "&cYou cannot warn this player!"
  252. stop
  253. broadcast "&3%{_p}% &7warned &3%arg-1%&7 for &c%arg-2%"
  254. if {warns.%arg-1%} is not set:
  255. set {warns.%arg-1%} to 1
  256. else:
  257. add 1 to {warns.%arg-1%}
  258.  
  259. command /clearchat:
  260. aliases: cc
  261. trigger:
  262. if player does not have permission "clear.chat":
  263. send "&cYou are not permitted to run this command!"
  264. stop
  265. loop 100 times:
  266. broadcast ""
  267. broadcast "&7Chat cleared by &3%player%"
  268.  
  269. command /unwarn [<offlineplayer>]:
  270. trigger:
  271. if player does not have permission "warn.use":
  272. send "&cYou are not permitted to run this command!"
  273. stop
  274. if arg-1 is not set:
  275. send "&c/unwarn (player)"
  276. stop
  277. if player is not set:
  278. set {_p} to "CONSOLE"
  279. else:
  280. set {_p} to player
  281. if {warns.%arg-1%} is not set:
  282. send "&cThat player has no warns!"
  283. stop
  284. else:
  285. broadcast "&3%player%&7 pardoned &c%arg-1%&7's warn"
  286. if {warns.%arg-1%} is 1:
  287. clear {warns.%arg-1%}
  288. else:
  289. remove 1 from {warns.%arg-1%}
  290.  
  291. command /minecraft:me:
  292. aliases: me
  293. trigger:
  294. send "&cCommand disabled!"
  295.  
  296. on chat:
  297. if {muted.%player%} is true:
  298. send "&cYou cannot chat while muted!"
  299. cancel event
  300.  
  301. command /banlist:
  302. trigger:
  303. if player does not have permission "ban.use":
  304. send "&cYou are not permitted to run this command!"
  305. stop
  306. if "%{banlist::*}%" is "<none>":
  307. send "&7No players are banned!"
  308. stop
  309. send "&9Current players banned:&7 %{banlist::*}%"
  310.  
  311. command /mutelist:
  312. trigger:
  313. if player does not have permission "mute.use":
  314. send "&cYou are not permitted to run this command!"
  315. stop
  316. if "%{mutelist::*}%" is "<none>":
  317. send "&7No players are muted!"
  318. stop
  319. send "&9Current players muted:&7 %{mutelist::*}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement