FrostedWeFall

SimplePunish

Oct 13th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.53 KB | None | 0 0
  1. #SimplePunish by Hyperbyte
  2. #Version 1.3
  3.  
  4. on first join:
  5. set {mute.%player%} to false
  6.  
  7. on chat:
  8. if {mute.%player%} is true:
  9. message "&cYou cannot speak when you are muted!"
  10. cancel event
  11.  
  12. command /simplepunish [<text>]:
  13. permission: simplepunish.command
  14. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.command
  15. usage: &7/simplepunish <subcommand>
  16. aliases: /sp, /spunish, /simplep
  17. trigger:
  18. if arg-1 is not set:
  19. message "&8&l[&b&lSimplePunish&8&l] &cSimplePunish 1.3 by Hyperbyte"
  20. message "&8&l[&b&lSimplePunish&8&l] &c/spreload - Quickly reload - simplepunish.reload"
  21. message "&8&l[&b&lSimplePunish&8&l] &c/ban <player> <reason> - Ban a player - simplepunish.ban"
  22. message "&8&l[&b&lSimplePunish&8&l] &c/unban <player> - Unban a player - simplepunish.unban"
  23. message "&8&l[&b&lSimplePunish&8&l] &c/mute <player> - Mute a player - simplepunish.mute"
  24. message "&8&l[&b&lSimplePunish&8&l] &c/unmute <player> - Unmute a player - simplepunish.unmute"
  25. message "&8&l[&b&lSimplePunish&8&l] &c/checkmute <player> - Check if a player is muted - simplepunish.checkmute"
  26. message "&8&l[&b&lSimplePunish&8&l] &c/checkban <player> - Check if a player is banned - simplepunish.checkban"
  27. message "&8&l[&b&lSimplePunish&8&l] &c/warn <player> [reason] - Warn a player - simplepunish.warn"
  28. message "&8&l[&b&lSimplePunish&8&l] &c/screenshare <player> - Share screens with the player - simplepunish.screenshare"
  29. message "&8&l[&b&lSimplePunish&8&l] &c/freeze <player> - Freeze the player - simplepunish.freeze"
  30. message "&8&l[&b&lSimplePunish&8&l] &c/unfreeze <player> - Unfreeze the player - simplepunish.unfreeze"
  31.  
  32. command /spreload:
  33. permission: simplepunish.reload
  34. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.reload
  35. usage: &7/spreload
  36. aliases: /spr
  37. trigger:
  38. message "&8&l[&b&lSimplePunish&8&l] &cReloading SimplePunish Config..."
  39. execute console command "/sk reload simplepunish"
  40. message "&8&l[&b&lSimplePunish&8&l] &cSimplePunish config reloaded."
  41.  
  42. command /ban [<offline player>] [<text>]:
  43. permission: simplepunish.ban
  44. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.ban
  45. usage: &7/ban [Player] [Reason]
  46. aliases: /ba, /b
  47. trigger:
  48. if arg-1 is not set:
  49. message "&7/ban [Player] [Reason]"
  50. if arg-1 is set:
  51. if arg-2 is set:
  52. ban "%arg-1%" because "%arg-2%"
  53. kick arg-1
  54. set {ban.%arg-1%} to true
  55. message "&cPlayer &2&l%arg-1%&c has been banned for &c%arg-2%."
  56. if arg-2 is not set:
  57. ban "arg-1"
  58. kick arg-1
  59. message "&cPlayer &2&l%arg-1%&c was banned but no reason was provided."
  60.  
  61. command /banip [<offline player>] [<text>]:
  62. permission: simplepunish.banip
  63. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.banip
  64. usage: &7/banip [Player] [Reason]
  65. aliases: /ipban, /bi
  66. trigger:
  67. if arg-1 is not set:
  68. message "&7/banip [Player] [Reason]"
  69. if arg-1 is set:
  70. if arg-2 is set:
  71. IP-ban arg-1 because "%arg-2%"
  72. kick arg-1
  73. set {ban.%arg-1%} to true
  74. message "&cPlayer &2&l%arg-1%&c has been ip-banned for &c%arg-2%."
  75. if arg-2 is not set:
  76. IP-ban arg-1 because "Banned!"
  77. kick arg-1
  78. message "&cPlayer &2&l%arg-1%&c was ip-banned but no reason was provided."
  79.  
  80. command /unban [<offline player>]:
  81. permission: simplepunish.unban
  82. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.unban
  83. usage: &7/unban [Player]
  84. aliases: /ub
  85. trigger:
  86. if arg-1 is not set:
  87. message "&7/unban [Player]"
  88. if arg-1 is set:
  89. unban arg-1
  90. set {ban.%arg-1%} to false
  91. message "&cYou have unbanned &2&l%arg-1%&c."
  92.  
  93. command /unmute [<offline player>]:
  94. permission: simplepunish.unmute
  95. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.unmute
  96. usage: &7/unmute [Player]
  97. trigger:
  98. if arg-1 is not set:
  99. message "&7/unmute [Player]"
  100. if arg-1 is set:
  101. set {mute.%arg-1%} to false
  102. message "&cYou have unmuted &2&l%arg-1%&c."
  103. command /mute [<offline player>]:
  104. permission: simplepunish.mute
  105. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.mute
  106. usage: &7/mute [Player]
  107. trigger:
  108. if arg-1 is not set:
  109. message "&7/mute [Player]"
  110. if arg-1 is set:
  111. set {mute.%arg-1%} to true
  112. message "&cYou have muted &2&l%arg-1%&c."
  113. command /checkmute [<offline player>]:
  114. permission: simplepunish.checkmute
  115. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.checkmute
  116. usage: &7/checkmute [Player]
  117. aliases: /cm
  118. trigger:
  119. if arg-1 is not set:
  120. message "&7/checkmute [Player]"
  121. if arg-1 is set:
  122. if {mute.%arg-1%} is true:
  123. message "&2&l%arg-1%&c is &c&ncurrently muted&c."
  124. if {mute.%arg-1%} is false:
  125. message "&2&l%arg-1%&c is &a&nnot muted&c."
  126. command /checkban [<offline player>]:
  127. permission: simplepunish.checkban
  128. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.checkban
  129. usage: &7/checkban [Player]
  130. aliases: /cb
  131. trigger:
  132. if arg-1 is not set:
  133. message "&7/checkban [Player]"
  134. if arg-1 is set:
  135. if {ban.%arg-1%} is true:
  136. message "&2&l%arg-1%&c is &c&ncurrently banned&c."
  137. if {ban.%arg-1%} is false:
  138. message "&2&l%arg-1%&c is &a&nnot banned&c."
  139. command /warn [<offline player>] [<text>]:
  140. permission: simplepunish.warn
  141. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.warn
  142. usage: &7/warn [Player] [Reason]
  143. trigger:
  144. if arg-1 is not set:
  145. message "&7/warn [Player] [Reason]"
  146. if arg-1 is set:
  147. if arg-2 is set:
  148. send "&aYou have been &cwarned&a for &2%arg-2%." to arg-1
  149. if arg-2 is not set:
  150. send "&aYou have been &cwarned&a by a staff member." to arg-1
  151.  
  152.  
  153. command /kick [<offline player>]:
  154. permission: simplepunish.kick
  155. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.kick
  156. usage: /kick [Player]
  157. trigger:
  158. if arg-1 is not set:
  159. message "&7/kick [Player]"
  160. if arg-1 is set:
  161. kick arg-1
  162. message "&2&l%arg-1%&c has been kicked."
  163. command /screenshare [<offline player>]:
  164. permission: simplepunish.screenshare
  165. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.screenshare
  166. aliases: /ss
  167. usage: /screenshare [Player]
  168. trigger:
  169. if arg-1 is not set:
  170. send "&7/screenshare [Player]"
  171. if arg-1 is set:
  172. add 1 to {ss.%arg 1%}
  173. if {ss.%arg 1%} is 1:
  174. set {loc.%arg 1%} to location of arg 1
  175. set {ss.%arg 1%} to true
  176. send "&cYou are currently sharing screens with &2&l%arg 1%&c. Use /ss &2&l%arg-1%&c to stop checking &2&l%arg-1%&c." to player
  177. else:
  178. delete {loc.%arg 1%}
  179. set {ss.%arg 1%} to false
  180. delete {ss.%arg 1%}
  181. send "&cYou have ended the screenshare session with &2&l%arg-1%&c!" to player
  182. every tick:
  183. loop all players:
  184. if {ss.%loop-player%} is true:
  185. teleport loop-player to {loc.%loop-player%}
  186.  
  187. command /freeze [<offline player>]:
  188. permission: simplepunish.freeze
  189. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.freeze
  190. aliases: /frz
  191. usage: /freeze [Player]
  192. trigger:
  193. if arg-1 is not set:
  194. message "&7/freeze [Player]"
  195. if arg-1 is set:
  196. message "&2&l%arg-1% &chas been frozen. Use /unfreeze [Player] to unfreeze them."
  197. send "&cYou have been &c&nfrozen&c." to arg-1
  198. set arg-1's walk speed to 0
  199. apply weakness 255 to arg-1 for 9999 hours
  200. apply resistance 255 to arg-1 for 9999 hours
  201. apply jump boost 255 to arg-1 for 9999 hours
  202.  
  203. command /unfreeze [<player>]:
  204. permission: simplepunish.unfreeze
  205. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.unfreeze
  206. aliases: /ufrz
  207. usage: /unfreeze [Player]
  208. trigger:
  209. if arg-1 is not set:
  210. message "&7/unfreeze [Player]"
  211. if arg-1 is set:
  212. message "&2&l%arg-1%&c has been unfrozen. If you need to freeze them again, use /freeze [Player]."
  213. send "&c&lYou have been &a&nunfrozen&c." to arg-1
  214. set arg-1's walk speed to 0.2
  215. remove weakness from arg-1
  216. remove resistance from arg-1
  217.  
  218.  
  219. command /punish [<offline player>] [<text>]:
  220. permission: simplepunish.menu
  221. permission message: &cYou do not have access to execute this command! Permission required: simplepunish.menu
  222. trigger:
  223. if arg-1 is not set:
  224. send "&8&l[&b&lSimplePunish&8&l] &6/punish &7<player>"
  225. if arg-1 is set:
  226. open chest with 6 rows named "&6Punishing %arg-1%" to player
  227. wait 1 tick
  228. format slot 9 of player with book named "&cHacked Client" with lore "&7Punishment Type: &cBan||&7Ban Duration: &cPermanent" to close then run [make player execute command "ban %arg-1%"]
  229. format slot 10 of player with book named "&cHacked Client [ScreenShared]" with lore "&7Punishment Type: &cBan||&7Ban Duration: &cPermanent" to close then run [make player execute command "ban %arg-1% Hacked Client [ScreenShared"]
  230. format slot 11 of player with book named "&cHacked Client [Admitted]" with lore "&7Punishment Type: &cBan||&7Ban Duration: &cPermanent" to close then run [make player execute command "ban %arg-1% Hacked Client [Admitted]"]
  231. format slot 12 of player with book named "&cBan Evasion" with lore "&7Punishment Type: &cBan||&7Ban Duration: &cPermanent" to close then run [make player execute command "ban %arg-1% Ban Evasion"]
  232. format slot 13 of player with book named "&cBan Evasion [IP Ban]" with lore "&7Punishment Type: &cIPBan||&7Ban Duration: &cPermanent" to close then run [make player execute command "banip %arg-1% Ban Evasion [IP Ban]"]
  233. format slot 14 of player with book named "&cRefusal to ScreenShare" with lore "&7Punishment Type: &cBan||&7Ban Duration: &cPermanent" to close then run [make player execute command "ban %arg-1% Refusal to ScreenShare"]
  234. format slot 15 of player with book named "&cDDoS Threats to Server" with lore "&7Punishment Type: &cBan||&7Ban Duration: &cPermanent" to close then run [make player execute command "ban %arg-1% DDoS Threats"]
  235. format slot 16 of player with book named "&cDDoS Threats to Players" with lore "&7Punishment Type: &cBan" to close then run [make player execute command "ban %arg-1% DDoS Threats to Players."]
  236. format slot 17 of player with book named "&cVault Abusing [Kit Mixing] [3rd Offense]" with lore "&7Punishment Type: &cBan||&7Ban Duration: &cPermanent" to close then run [make player execute command "ban %arg-1% Vault Abuse"]
  237. format slot 18 of player with book named "&cAdvertising" with lore "&7Punishment Type: &cBan||&7Ban Duration: &cPermanent" to close then run [make player execute command "ban %arg-1% Advertising"]
  238. format slot 20 of player with book named "&cAdvertising [YouTube]" with lore "&7Punishment Type: &cMute||&7Mute Duration: &cPermanent" to close then run [make player execute command "mute %arg-1% Advertising [YouTube]"]
  239. format slot 19 of player with book named "&cTeaming [3rd Offense]" with lore "&7Punishment Type: &cBan||&7Ban Duration: &cPermanent" to close then run [make player execute command "ban %arg-1% Teaming [3rd Offense]"]
  240. format slot 21 of player with book named "&cSuicide Encouragment" with lore "&7Punishment Type: &cMute||&7Mute Duration: &cPermanent" to close then run [make player execute command "mute %arg-1% Suicidal Encouragment"]
  241. format slot 22 of player with book named "&cSpamming" with lore "&7Punishment Type: &cMute||&7Mute Duration: &cPermanent" to close then run [make player execute command "mute %arg-1% Spamming"]
  242. format slot 23 of player with book named "&cToxcity" with lore "&7Punishment Type: &cMute||&7Mute Duration: &cPermanent" to close then run [make player execute command "mute %arg-1% Toxcity"]
  243. format slot 24 of player with book named "&cRacism" with lore "&7Punishment Type: &cMute||&7Mute Duration: &cPermanent" to close then run [make player execute command "mute %arg-1% Racism"]
  244. format slot 25 of player with book named "&cStaff Disrespect" with lore "&7Punishment Type: &cMute||&7Mute Duration: &cPermanent" to close then run [make player execute command "mute %arg-1% Staff Disrespect"]
  245. format slot 26 of player with book named "&cTeaming [2nd Offense]" with lore "&7Punishment Type: &cKick" to close then run [make player execute command "kick %arg-1%"]
  246. format slot 27 of player with book named "&cVault Abuse [Kit Mixing] [2nd Offense]" with lore "&7Punishment Type: &cKick" to close then run [make player execute command "kick %arg-1%"]
  247. format slot 28 of player with book named "&cCamping in Safe Room" with lore "&7Punishment Type: &cWarning" to close then run [make player execute command "warn %arg-1% Camping in Safe Rooms"]
  248. format slot 29 of player with book named "&cVault Abuse [Kit Mixing] [1st Offense]" with lore "&7Punishment Type: &cWarn" to close then run [make player execute command "warn %arg-1% Vault Abuse [1st Offense]"]
  249. format slot 30 of player with book named "&cTeaming [1st Offense]" with lore "&7Punishment Type: &cWarn" to close then run [make player execute command "warn %arg-1% Teaming [1st Offense]"]
  250. format slot 31 of player with book named "&cAbusing /report" with lore "&7Punishment Type: &cWarn" to close then run [make player execute command "warn %arg-1% Abuse of /report"]
  251. format slot 32 of player with book named "&cOther/Custom [Ban]" with lore "&7Punishment Type: &cBan" to close then run [make player execute command "ban %arg-1% %arg-2%"]
  252. format slot 33 of player with book named "&cOther/Custom [Mute]" with lore "&7Punishment Type: &cMute" to close then run [make player execute command "mute %arg-1% %arg-2%"]
  253. format slot 34 of player with book named "&cOther/Custom [Kick]" with lore "&7Punishment Type: &cKick" to close then run [make player execute command "kick %arg-1%"]
  254. format slot 31 of player with book named "&cOther/Custom [Warn]" with lore "&7Punishment Type: &cWarn" to close then run [make player execute command "warn %arg-1% %arg-2%"]
  255. format slot 45 of player with book named "&cUnban %arg-1%" with lore "&7Unpunish Type: &cUnban" to close then run [make player execute command "unban %arg-1%"]
  256. format slot 46 of player with book named "&cUnmute %arg-1%" with lore "&7Unpunish Type: &cUnmute" to close then run [make player execute command "unmute %arg-1%"]
  257. format slot 47 of player with book named "&cReload Config" with lore "&7Reload the config" to close then run [make player execute command "spr"]
Advertisement
Add Comment
Please, Sign In to add comment