Advertisement
Ramina__

Untitled

Oct 22nd, 2021
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.53 KB | None | 0 0
  1. every 5 second:
  2. loop {banlist::*}:
  3. if {%loop-value%.banned} is set:
  4. if difference between now and {%loop-value%.banned} >= {%loop-value%.length}:
  5. unban loop-value
  6. remove loop-value from {banlist::*}
  7. clear {%loop-value%.banned}
  8. clear {%loop-value%.length}
  9. loop {mutelist::*}:
  10. if {%loop-value%.muted} is set:
  11. if difference between now and {%loop-value%.muted} >= {%loop-value%.mutelength}:
  12. unban loop-value
  13. clear {muted.%loop-value%}
  14. remove loop-value from {mutelist::*}
  15. clear {%loop-value%.muted}
  16. clear {%loop-value%.mutelength}
  17. command /rlp [<text>]:
  18. trigger:
  19. if arg-1 is not set:
  20. send "&7Specify a reason."
  21. else:
  22. if {lastban.%player's uuid%} is set:
  23. set {_r} to arg-1
  24. execute player command "%{lastbanway.%player's uuid%}% %{lastban.%player's uuid%}% %arg-1%"
  25. clear {lastban.%player's uuid%}
  26. clear {lastbanway.%player's uuid%}
  27. else:
  28. send "&7You have not punished a player yet."
  29. stop
  30. command /ban [<offlineplayer>] [<text>] [<timespan>]:
  31. trigger:
  32. set {_P} to player
  33. if player is not set:
  34. set {_P} to console
  35. if {_P} does not have permission "ban.use":
  36. send "&fUnknown command. Type /help for help."
  37. stop
  38. if arg-1 is not set:
  39. send "&7Missing player."
  40. stop
  41. if arg-2 is not set:
  42. send "&7Missing reson."
  43. stop
  44. if arg-1 has permission "ban.exempt":
  45. send "&b%arg-1%&7 cannot be banned"
  46. stop
  47. if arg-1 is banned:
  48. send "&b%arg-1%&7 is already banned!"
  49. stop
  50. if arg-2 is not set:
  51. send "&7Missing Reason!"
  52. else:
  53. set {_b} to arg-1
  54. set {_r} to arg-2
  55. set {_l} to "%arg-3%"
  56. set {_l} to "%capitalized {_l}%"
  57. if arg-3 = "FOREVER":
  58. replace all "FOREVER" " FOREVER" and "FOREVER " with "<FOREVER>" in arg-3
  59. if arg-3 is not set:
  60. set {_l} to "<FOREVER>"
  61. if {_r} contains "-s":
  62. replace all " -s" and "-s " with "" in {_r}
  63. set {_silent} to true
  64. if {_silent} is set:
  65. loop all players:
  66. if loop-player has permission "Staff+":
  67. if {joined.%arg-1's uuid%} is set:
  68. send "&c&lVS &7| &7&o(SILENT) &b%{_P}% &7banned &b%{_b}% &7for '&3%{_r}%&7' &7[%{_l}%&7]" to loop-player
  69. kick arg-1 due to "&7(&8!&7) &7You have been banned by &b%{_P}%&7 for &7'&3%{_r}%&7'. Banned for [%{_l}%&7] &7(&8!&7)"
  70. ban arg-1 due to {_r}
  71. set {%arg-1's uuid%.banned} to now
  72. set {%arg-1's uuid%.length} to arg-3
  73. add arg-1 to {banlist::*}
  74. add 1 to {staffbans}
  75. set {lastban.%player's uuid%} to {_b}
  76. set {lastbanway.%player's uuid%} to "/unban"
  77. else:
  78. send "&c&lVS &7| &7&o(SILENT) &b%{_P}% &7banned &b%{_b}% &7for '&3%{_r}%&7' &7[%{_l}%&7] <tooltip:&b%arg-1%&7 Has not joined before!><suggest command:/unwarn %{_b}% Error>&4&lWARNING<reset>" to loop-player
  79. kick arg-1 due to "&7(&8!&7) &7You have been banned by &b%{_P}%&7 for &7'&3%{_r}%&7'. Banned for [%{_l}%&7] &7(&8!&7)"
  80. ban arg-1 due to {_r}
  81. set {%arg-1's uuid%.banned} to now
  82. set {%arg-1's uuid%.length} to arg-3
  83. add arg-1 to {banlist::*}
  84. add 1 to {staffbans}
  85. set {lastban.%player's uuid%} to {_b}
  86. set {lastbanway.%player's uuid%} to "/unban"
  87. else:
  88. loop all players:
  89. if loop-player has permission "staff+":
  90. if {joined.%arg-1's uuid%} is set:
  91. send "&c&lVS &7| &b%{_P}% &7banned &b%{_b}% &7for &7'&3%{_r}%&7' &7[%{_l}%&7]" to loop-player
  92. else:
  93. send "&c&lVS &7| &b%{_P}% &7banned &b%{_b}% &7for &7'&3%{_r}%&7' &7[%{_l}%&7] <tooltip:&b%arg-1%&7 Has not joined before!><suggest command:/unban %{_b}% Error>&4&lWARNING<reset>" to loop-player
  94. send "" to arg-1
  95. send "&7(&8!&7) &7You have been banned by &b%{_P}% &7for '&b%{_r}%&7'. You will be banned for &7[%{_l}%&7] &7(&8!&7)" to arg-1
  96. send "" to arg-1
  97. apply slowness 1000 to arg-1 for 5 seconds
  98. apply blindness 1000 to arg-1 for 5 seconds
  99. wait 5 seconds
  100. ban arg-1 due to {_r}
  101. if arg-1 is online:
  102. broadcast "&7(&8!&7) &b%arg-1%&7 Has been removed from the game. &7(&8!&7)"
  103. kick arg-1 due to "&7(&8!&7) &7You have been banned by &b%{_P}%&7 for '&3%{_r}%&7'. banned for [%{_l}%&7] &7(&8!&7)"
  104. add arg-1 to {banlist::*}
  105. set {%arg-1's uuid%.banned} to now
  106. set {%arg-1's uuid%.length} to arg-3
  107. add 1 to {staffbans}
  108. set {lastban.%player's uuid%} to {_b}
  109. set {lastbanway.%player's uuid%} to "/unban"
  110.  
  111. command /unban [<offlineplayer>] [<string>]:
  112. trigger:
  113. if player does not have permission "unban.use":
  114. send "&cYou are not permitted to run this command!"
  115. stop
  116. if arg-1 is not set:
  117. send "&7/unban (player) [reason/-s]"
  118. stop
  119. if arg-2 is not set:
  120. send "&7Specify a reason!"
  121. stop
  122. if player is not set:
  123. set {_p} to "CONSOLE"
  124. else:
  125. set {_p} to player
  126. if arg-1 is not banned:
  127. send "&7That player is not banned!"
  128. stop
  129. if arg-2 contains "-s":
  130. replace all " -s" and "-s " with "" in {_r}
  131. set {_silent} to true
  132. if {_silent} is set:
  133. loop all players:
  134. if loop-player has permission "staff+":
  135. send "&c&lVS &7| &7&o(SILENT) &b%{_p}% &7unbanned &b%arg-1%&7 for '&3%arg-2%&7'" to loop-player
  136. unban arg-1
  137. remove 1 from {staffbans}
  138. remove arg-1 from {banlist::*}
  139. clear {lastban.%player's uuid%}
  140. else:
  141. loop all players:
  142. if loop-player has permission "staff+":
  143. send "&c&lVS &7| &b%{_p}% &7unbanned &b%arg-1% &7for '&3%arg-2%&7'" to loop-player
  144. remove 1 from {staffbans}
  145. unban arg-1
  146. remove arg-1 from {banlist::*}
  147.  
  148. command /mute [<offlineplayer>] [<text>] [<timespan>]:
  149. permission: mute.use
  150. permission message: &fUnknown command. Type /help for help.
  151. trigger:
  152. if arg-2 is not set:
  153. send "&7Specify A Reason"
  154. stop
  155. if arg-1 has permission "mute.use":
  156. send "&7That player cannot be muted!"
  157. stop
  158. set {_p} to player
  159. if player is not set:
  160. set {_p} to CONSOLE
  161. if {%arg-1's uuid%.muted} is set:
  162. send "&7That player is already muted!"
  163. stop
  164. if arg-2 is not set:
  165. cancel event
  166. send "&7Specify A Reason"
  167. else:
  168. set {_b} to arg-1
  169. set {_r} to arg-2
  170. if arg-3 is not set:
  171. set {_l} to "<FOREVER>"
  172. else:
  173. set {_l} to "%arg-3%"
  174. set {_l} to "%capitalized {_l}%"
  175. if {_r} contains "-s":
  176. replace all " -s" and "-s " with "" in {_r}
  177. set {_silent} to true
  178. if {_silent} is set:
  179. loop all players:
  180. if loop-player has permission "helper":
  181. if {joined.%[player's uuid%} is set:
  182. send "&c&lVS &7| &7&o(SILENT) &b%{_p}% &7muted &b%{_b}% &7for '&3%{_r}%&7' &7[%{_l}%&7]" to loop-player
  183. set {lastban.%player's uuid%} to {_b}
  184. set {lastbanway.%player's uuid%} to "/unmute"
  185. else:
  186. send "&c&lVS &7| &7&o(SILENT) &b%{_p}% &7muted &b%{_b}% &7for '&3%{_r}%&7' &7[%{_l}%&7] <tooltip:&b%arg-1%&7 Has not joined before!><suggest command:/unmute %{_b}% Error>&4&lWARNING<reset>" to loop-player
  187. set {lastban.%player's uuid%} to {_b}
  188. set {lastbanway.%player's uuid%} to "/unmute"
  189. else:
  190. loop all players:
  191. if loop-player has permission "helper":
  192. if {joined.%player's uuid%} is set:
  193. send "&c&lVS &7| &b%{_p}% &7muted &b%{_b}% &7for '&3%{_r}%&7' &7[%{_l}%&7]" to loop-player
  194. else:
  195. send "&c&lVS &7| &b%{_p}% &7muted &b%{_b}% &7for '&3%{_r}%&7' &7[%{_l}%&7] <tooltip:&b%arg-1%&7 Has not joined before!><suggest command:/unmute %{_b}% Error>&4&lWARNING<reset>" to loop-player
  196.  
  197. send "&7(&8!&7) &7You have been muted for '&3%{_l}%&7'. You will stay muted for [%{_l}%&7]. Your mute was issued by &b%{_p}%&7. &7(&8!&7)" to arg-1
  198. set {muted.%arg-1's uuid%} to true
  199. set {lastban.%player's uuid%} to {_b}
  200. add arg-1 to {mutelist::*}
  201. set {%arg-1's uuid%.muted} to now
  202. set {%arg-1's uuid%.mutelength} to arg-3
  203. set {%arg-1's uuid%.mutereason} to arg-2
  204. set {%arg-1's uuid%.mutedby} to {_p}
  205. set {lastbanway.%player's uuid%} to "/unmute"
  206. on chat:
  207. if {muted.%player's uuid%} = true:
  208. cancel event
  209. send "&7(&8!&7) &7You are currently muted for &3%{%player's uuid%.mutereason}%&7. You will stay muted for [%{%player%.mutelength}%&7]. Your mute was issued by &b%{%player%.mutedby}%&7. &7(&8!&7)" to player
  210.  
  211. command /unmute [<offlineplayer>] [<text>]:
  212. permission: mute.use
  213. permission message: &fUnknown command. Type /help for help
  214. trigger:
  215. if arg-1 is not set:
  216. send "&7&n/mute (player) [-s]"
  217. stop
  218. if arg-2 is not set:
  219. send "&7Specify a reason to unmute &b%arg-1%&7."
  220. stop
  221. set {_p} to player
  222. if player is not set:
  223. set {_p} to CONSOLE
  224. if {%arg-1's uuid%.muted} is not set:
  225. send "&7That player is not muted!"
  226. stop
  227. if {_r} contains "-s":
  228. replace all " -s" and "-s " with "" in {_r}
  229. set {_silent} to true
  230. if {_silent} is set:
  231. loop all players:
  232. if loop-player has permission "helper":
  233. send "&c&lVS &7| &7&o(SILENT) &b%{_p}% &7unmuted &b%arg-1% &7for '%arg-2%'" to loop-player
  234. send "&7(&8!&7) &7You have been unmuted for '&3%arg-2%&7'. You were unmuted by &b%{_p}%&7. &7(&8!&7)" to arg-1
  235. else:
  236. loop all players:
  237. if loop-player has permission "helper":
  238. send "&c&lVS &7| &b%{_p}% &7unmuted &b%arg-1% &7for '&3%arg-2%&7'" to loop-player
  239. send "&7(&8!&7) &7You have been unmuted for '&3%arg-2%&7'. You were unmuted by &b%{_p}%&7. &7(&8!&7)" to arg-1
  240. clear {muted.%arg-1's uuid%}
  241. remove arg-1 from {mutelist::*}
  242. clear {%arg-1's uuid%.muted}
  243. clear {%arg-1's uuid%.mutelength}
  244. command /warn [<offlineplayer>] [<string>]:
  245. permission: helper
  246. permission message: &fUnknown command. Type /help for help.
  247. trigger:
  248. set {_p} to player
  249. if player is not set:
  250. set {_p} to "CONSOLE"
  251. else if arg-1 is not set:
  252. send "&7Missing player."
  253. else if arg-1 has permission "helper":
  254. send "&b%arg-1% &7Cannot be warned."
  255. else if {Warns.%player's uuid%} is 3:
  256. send "&c&lVS &b%arg-1% &7Already has 3 warns!"
  257. else:
  258. set {_b} to arg-1
  259. add 1 to {Warns.%arg-1's uuid%}
  260. set {lastban.%player's uuid%} to {_b}
  261. set {lastbanway.%player's uuid%} to "/unwarn"
  262. send "&7(&8!&7) %{_p}% &7Has warned you for &3%arg-2% &7(&8!&7)" to arg-1
  263. loop all players:
  264. if loop-player has permission "helper":
  265. if {joined.%player's uuid%} is set:
  266. send "&c&lVS &7| &b%{_p}% &7Warned &c%{_b}% &7for '&3%arg-2%&7'" to loop-player
  267. else:
  268. send "&c&lVS &7| &b%{_p}% &7Warned &c%{_b}% &7for '&3%arg-2%&7' <tooltip:&b%arg-1%&7 Has not joined before!><suggest command:/unwarn %{_b}% Error>&4&lWARNING<reset>" to loop-player
  269.  
  270. command /unwarn [<offlineplayer>] [<string>]:
  271. permission: helper
  272. permission message: &fUnknown command. Type /help for help.
  273. trigger:
  274. set {_p} to player
  275. if player is not set:
  276. set {_p} to "CONSOLE"
  277. if arg-1 is not set:
  278. send "&7Missing player."
  279. else:
  280. if arg-2 is not set:
  281. send "&7Missing reason."
  282. else:
  283. if {Warns.%arg-1's uuid%} = 0:
  284. send "&c&lVS &b%arg-1% &7Has no warns!"
  285. else:
  286. loop all players:
  287. if loop-player has permission "helper":
  288. send "&c&lVS &7| &b%{_p}% &7Deducted 1 warn from &c%arg-1% &7for '&3%arg-2%&7'" to loop-player
  289. remove 1 from {Warns.%arg-1's uuid%}
  290. send "&7(&8!&7) &b%{_p}% &7Has deducted 1 warn from you for '&3%arg-2%&7' &7(&8!&7)" to arg-1
  291. on chat:
  292. if player does not have permission "helper":
  293. if {%player's uuid%.muted} is not set:
  294. if {%player's uuid%.Chatcooldown} is set:
  295. cancel event
  296. send "&7(&8!&7) &7You must wait &c3&7 seconds between talking! &7(&8!&7)"
  297. else:
  298. set {%player's uuid%.Chatcooldown} to true
  299. wait 3 seconds
  300. clear {%player's uuid%.Chatcooldown}
  301. command /clearc:
  302. trigger:
  303. clear {%player's uuid%.Chatcooldown}
  304.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement