Oxalist

Punish

Apr 4th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.32 KB | None | 0 0
  1. variables:
  2. {warns::%player%} = 0
  3.  
  4. command /mute <player>:
  5. permission: staff.mute
  6. usage: /mute <player>
  7. trigger:
  8. if {Mute::%arg 1%} is "False":
  9. set {Mute::%arg 1%} to "True"
  10. broadcast "&e(Punish) &7%player% &fhas muted &7%arg 1%"
  11.  
  12. command /unmute <player>:
  13. permission: staff.mute
  14. usage: /unmute <player>
  15. trigger:
  16. if {Mute::%arg 1%} is "True":
  17. set {Mute::%arg 1%} to "False"
  18. broadcast "&e(Punish) &7%player% &fhas unmuted &7%arg 1%"
  19.  
  20. command /ban [<Offlineplayer>] [<Text>]:
  21. permission: staff.ban
  22. usage: /ban <Player> [<Reason>]
  23. trigger:
  24. if player has permission "staff.ban":
  25. if arg 1 is set:
  26. if arg 2 is set:
  27. set {banned.%arg 1%} to true
  28. set {ban.time.%arg 1%} to now
  29. set {ban.reason.%arg 1%} to argument-2
  30. set {ban.bannedby.%arg 1%} to player
  31. set {ban.expire.%arg 1%} to "Never"
  32. set {BanIP.%arg 1%} to "False"
  33. kick arg 1 due to "&e(Punish) &7Banned for &f%arg 2% &7by &f%player%"
  34. ban arg 1 due to "&8» &7Banned for &e%arg 2% &7by &e%player%"
  35. loop all players:
  36. loop-player has permission "staff.notify"
  37. send "&e(Punish) &f%player% &7banned &f%arg 1% &7Reason: &f%arg 2%" to loop-player
  38. else:
  39. send "&8» &e/Ban <Player> <Reason>"
  40. else:
  41. send "&8» &e/Ban <Player> <Reason>"
  42. else:
  43. send "&8» &cNo permission"
  44. stop
  45.  
  46. command /banip [<Offlineplayer>] [<Text>]:
  47. permission: staff.banip
  48. usage: /banip <Player> [<Reason>]
  49. trigger:
  50. if player has permission "staff.banip":
  51. if arg 1 is set:
  52. if arg 2 is set:
  53. set {banned.%arg 1%} to "true"
  54. set {ban.time.%arg 1%} to "now"
  55. set {ban.reason.%arg 1%} to argument-2
  56. set {ban.expire.%arg 1%} to "Never"
  57. set {ban.bannedby.%arg 1%} to player
  58. set {IP.%arg 1%} to ip of arg 1
  59. set {BanIP.%arg 1%} to "True"
  60. kick arg 1 due to "&e(Punish) &7IP-Banned for &f%arg 2% &7by &f%player%"
  61. ban arg 1 due to "&e(Punish) &7IP-Banned for &f%arg 2% &7by &f%player%"
  62. ban ip of arg 1 due to "&e(Punish) &7IP-Banned for &f%arg 2% &7by &f%player%"
  63. loop all players:
  64. loop-player has permission "staff.notify"
  65. send "&e(Punish) &f%player% &7ip-banned &f%arg 1% &7Reason: &f%arg 2%" to loop-player
  66. else:
  67. send "&8» &e/Banip <Player> <Reason>"
  68. else:
  69. send "&8» &e/Banip <Player> <Reason>"
  70. else:
  71. send "&8» &cNo permission"
  72. stop
  73.  
  74. command /tempban [<Offlineplayer>] [<Text>] [<Timespan>]:
  75. permission: staff.tempban
  76. usage: /tempban <Player> <Reason> <Timespan>
  77. trigger:
  78. if player has permission "staff.tempban":
  79. if arg 1 is set:
  80. if arg 2 is set:
  81. if arg 3 is set:
  82. set {banned.%arg 1%} to "true"
  83. set {ban.time.%arg 1%} to "now"
  84. set {ban.reason.%arg 1%} to argument-2
  85. set {ban.expire.%arg 1%} to "now"
  86. add arg-3 to {ban.expire.%arg 1%}
  87. set {_Unbantime} to difference between {ban.expire.%arg 1%} and now
  88. set {ban.bannedby.%arg 1%} to player
  89. kick arg 1 due to "&e(Punish) &7Temp-Banned for &f%arg 3% &7for &f%arg 2% &7by &e%player% &8- &7Will be unbanned &f%{ban.expire.%arg 1%}% EST"
  90. ban arg 1 due to "&e(Punish) &7Temp-Banned for &f%arg 3% &7for &f%arg 2% &7by &f%player% &8- &7Will be unbanned &f%{ban.expire.%arg 1%}% EST"
  91. loop all players:
  92. loop-player has permission "staff.notify"
  93. send "&e(Punish) &f%player% &7tempbanned &f%arg 1% &7for &f%arg 3% &7Reason: &f%arg 2%" to loop-player
  94. wait {_Unbantime}
  95. unban arg-1
  96. else:
  97. send "&8» &e/Tempban <Player> <Reason> <Timespan>"
  98. else:
  99. send "&8» &e/Tempban <Player> <Reason> <Timespan>"
  100. else:
  101. send "&8» &e/Tempban <Player> <Reason> <Timespan>"
  102. else:
  103. send "&8» &cNo permission"
  104. stop
  105.  
  106. command /unban [<offlineplayer>]:
  107. permission: staff.unban
  108. usage: /unban <player>
  109. trigger:
  110. if player has permission "staff.unban":
  111. if arg 1 is set:
  112. if {banned.%arg 1%} is "true":
  113. unban arg-1
  114. unban ip of arg 1
  115. set {banned.%arg 1%} to "false"
  116. loop all players:
  117. loop-player has permission "staff.notify"
  118. send "&e(Punish) &f%player% &7unbanned &f%arg 1%" to loop-player
  119. else:
  120. send "&8» &eThis player isn't banned"
  121. else:
  122. send "&8» &e/Unban <Player>"
  123. else:
  124. send "&8» &cNo permission"
  125. stop
  126.  
  127. command /kick [<Offlineplayer>] [<Text>]:
  128. permission: staff.kick
  129. usage: /kick <Player> [<Reason>]
  130. trigger:
  131. if player has permission "staff.kick":
  132. if arg 1 is set:
  133. if arg 2 is set:
  134. kick arg 1 due to "&e(Punish) &f%arg 1% &7got Kicked for &f%arg 2% &7by &f%player%"
  135. loop all players:
  136. loop-player has permission "staff.notify"
  137. send "&e(Punish) &f%player% &7kicked &f%arg 1% &7Reason: &f%arg 2%" to loop-player
  138. else:
  139. send "&8» &e/kick <Player> <Reason>"
  140. else:
  141. send "&8» &e/kick <Player> <Reason>"
  142. else:
  143. send "&8» &cNo permission"
  144. stop
  145.  
  146. command /baninfo [<offlineplayer>]:
  147. permission: staff.baninfo
  148. usage: /baninfo <Player>
  149. trigger:
  150. if player has permission "staff.baninfo":
  151. if arg is set:
  152. if {banned.%arg 1%} is "true":
  153. send "&7"
  154. send "&8» &7Banned player&7: &e%arg 1%"
  155. send "&8» &7Banned by&7: &e%{ban.bannedby.%arg 1%}%"
  156. send "&8» &7Ban reason&7: &e%{ban.reason.%arg 1%}%"
  157. send "&8» &7Time of Ban (EST) &7: &e%{ban.time.%arg 1%}%"
  158. send "&8» &7IP Banned &7: &e%{BanIP.%arg 1%}%"
  159. send "&8» &7Expiration&7: &e%{ban.expire.%arg 1%}%"
  160. send "&7"
  161. else:
  162. send "&8» &eThis player is not banned"
  163. else:
  164. send "&8» &e/Baninfo <Player>"
  165. else:
  166. send "&8» &cNo Permission"
  167. stop
  168.  
  169. command /unbanip [<offlineplayer>]:
  170. permission: staff.unbanip
  171. usage: /unbanip <Player>
  172. trigger:
  173. if arg 1 is not set:
  174. send "&8» &eYou must specify a player."
  175. stop
  176. if arg 1 is set:
  177. ip-unban arg 1
  178. broadcast "&e(Punish) &f%arg 1% &7has been IP-unbanned."
  179. stop
  180.  
  181. command /ignore [<offlineplayer>]:
  182. permission: player.ignore
  183. usage: /ignore <Player>
  184. trigger:
  185. if arg 1 is not set:
  186. send "&8» &7You are ignoring: &e%{ignore::%uuid of player%::*}%"
  187. stop
  188. if arg 1 is set:
  189. if arg 1 is "%player%":
  190. send "&8» &7You cannot ignore yourself."
  191. stop
  192. else:
  193. if {ignore::%uuid of player%::*} contains arg 1:
  194. clear {ignore::%uuid of player%::%arg 1%}
  195. send "&8» &7You are no longer ignoring &e%arg 1%."
  196. stop
  197. else:
  198. set {ignore::%uuid of player%::%arg 1%} to arg 1
  199. send "&8» &7You are now ignoring &e%arg 1%."
  200. stop
  201.  
  202. command /unwarn [<offlineplayer>]:
  203. permission: staff.warn
  204. trigger:
  205. if arg 1 is not set:
  206. send "&e(Warn) &7/Unwarn <player>"
  207. stop
  208. if {warns::%arg 1%} is equal to 0:
  209. send "&e(Warn) &7This player doesn't have any warns."
  210. stop
  211. if arg 1 is set:
  212. remove 1 from {warns::%arg 1%}
  213. broadcast "&e(Warn) &f%player% &7has unwarned &f%arg 1% &a(%{warns::%player%}%/3)"
  214.  
  215.  
  216. command /warn [<offlineplayer>] [<text>]:
  217. permission: staff.warn
  218. trigger:
  219. if arg 1 is set:
  220. if arg 2 is set:
  221. add 1 to {warns::%arg 1%}
  222. broadcast "&e(Punish) &f%player% &7has warned &f%arg 1% &7for &f%arg 2% &a(%{warns::%arg 1%}%/3)"
  223. if arg 1 is set:
  224. if arg 2 is set:
  225. if {warns::%arg 1%} is equal to 3:
  226. set {warns::%arg 1%} to 0
  227. set {banned.%arg 1%} to "true"
  228. set {ban.time.%arg 1%} to "now"
  229. set {ban.reason.%arg 1%} to "Warning Threshold Met. (3/3)"
  230. set {ban.expire.%arg 1%} to "2 days"
  231. set {_Unbantime} to difference between {ban.expire.%arg 1%} and now
  232. set {ban.bannedby.%arg 1%} to player
  233. kick arg 1 due to "&e(Punish) &7Temp-Banned for &f%{ban.reason.%arg 1%}% &7for &f%arg 2% &7by &e%player% &8- &7Will be unbanned &f%{ban.expire.%arg 1%}% EST"
  234. ban arg 1 due to "&e(Punish) &7Temp-Banned for &f%{ban.reason.%arg 1%}% &7for &f%arg 2% &7by &f%player% &8- &7Will be unbanned &f%{ban.expire.%arg 1%}% EST"
  235. loop all players:
  236. loop-player has permission "staff.notify"
  237. send "&e(Punish) &f%player% &7tempbanned &f%arg 1% &7for &f%{ban.reason.%arg 1%}% &7Reason: &f%arg 2%" to loop-player
  238. wait {_Unbantime}
  239. unban arg-1
  240.  
  241. command /resetwarns [<offlineplayer>]:
  242. trigger:
  243. set {warns::%arg 1%} to 0
Add Comment
Please, Sign In to add comment