Oxalist

Punishment Skript [Incomplete]

Oct 28th, 2018 (edited)
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.14 KB | None | 0 0
  1. command /mute [<offlineplayer>] [<text>]:
  2. permission: evolve.staff
  3. permission message: &cYou do not have the correct permission to use this command
  4. trigger:
  5. if arg 1 is not set:
  6. if arg 2 is not set:
  7. send "&bCorrect Usage: &f/mute <player> <reason>"
  8. if arg 1 is set:
  9. if arg 2 is not set:
  10. if {mute::%arg 1%} is not set:
  11. broadcast "&b%player% &fmuted &b%arg 1% &freason: &bUnspecified Reason &8[&3FOREVER&8]"
  12. set {mute::%arg 1%} to true
  13. stop
  14. if {mute::%arg 1%} is true:
  15. send "&cThat player is already muted forever" to player
  16. if arg 1 is set:
  17. if arg 2 is set:
  18. if {mute::%arg 1%} is not set:
  19. broadcast "&b%player% &fmuted &b%arg 1% &freason: &b%arg 2% &8[&3FOREVER&8]"
  20. set {mute::%arg 1%} to true
  21. stop
  22. if {mute::%arg 1%} is true:
  23. send "&cThat player is already muted forever" to player
  24.  
  25. command /unmute [<offlineplayer>]:
  26. permission: evolve.staff
  27. permission message: &cYou do not have the correct permission to use this command
  28. trigger:
  29. if arg 1 is not set:
  30. send "&bCorrect Usage: &f/unmute <player>"
  31. if arg 1 is set:
  32. if {mute::%arg 1%} is true:
  33. broadcast "&b%player% &funmuted &b%arg 1%"
  34. delete {mute::%arg 1%}
  35. stop
  36. if {mute::%arg 1%} is not set:
  37. send "&cThat player is already unmuted" to player
  38.  
  39. command /kick [<offlineplayer>] [<text>]:
  40. permission: evolve.staff
  41. permission message: &cYou do not have the correct permission to use this command
  42. trigger:
  43. if arg 1 is not set:
  44. if arg 2 is not set:
  45. send "&bCorrect Usage: &f/kick <player> <reason>"
  46. if arg 1 is set:
  47. if arg 2 is not set:
  48. broadcast "&b%player% &fkicked &b%arg 1% &freason: &bUnspecified Reason"
  49. kick the arg 1 due to "&b&lEVOLVE%newline%&7%newline%&fKicked by: &b%player%%newline%&fReason: &bUnspecified Reason%newline%&7%newline%&7Join back is you want to!"
  50. if arg 1 is set:
  51. if arg 2 is set:
  52. broadcast "&b%player% &fkicked &b%arg 1% &freason: &b%arg 2%"
  53. kick the arg 1 due to "&b&lEVOLVE%newline%&7%newline%&fKicked by: &b%player%%newline%&fReason: &b%arg 2%%newline%&7%newline%&7Join back is you want to!"
  54.  
  55.  
  56. command /ban [<offlineplayer>] [<text>]:
  57. permission: evolve.staff
  58. permission message: &cYou do not have the correct permission to use this command
  59. trigger:
  60. if arg 1 is not set:
  61. if arg 2 is not set:
  62. send "&bCorrect Usage: &f/ban <player> <reason>"
  63. if arg 1 is set:
  64. if arg 2 is not set:
  65. if {banned::%arg 1%} is not set:
  66. broadcast "&b%player% &fbanned &b%arg 1% &freason: &bUnspecified Reason &8[&3FOREVER&8]"
  67. kick arg 1 due to "&b&lEVOLVE%newline%&7%newline%&fBanned by: &b%player%%newline%&fReason: &bUnspecified Reason%newline%&7%newline%&7Appeal evolvemh.tk/appeal"
  68. ban arg 1 due to "&b&lEVOLVE%newline%&7%newline%&fBanned by: &b%player%%newline%&fReason: &bUnspecified Reason%newline%&7%newline%&7Appeal evolvemh.tk/appeal"
  69. set {banned::%arg 1%} to true
  70. stop
  71. if {banned::%arg 1%} is true:
  72. send "&cThat player is already banned forever" to player
  73. if arg 1 is set:
  74. if arg 2 is set:
  75. if {banned::%arg 1%} is not set:
  76. broadcast "&b%player% &fbanned &b%arg 1% &freason: &b%arg 2% &8[&3FOREVER&8]"
  77. kick arg 1 due to "&b&lEVOLVE%newline%&7%newline%&fBanned by: &b%player%%newline%&fReason: &b%arg 2%%newline%&7%newline%&7Appeal evolvemh.tk/appeal"
  78. ban arg 1 due to "&b&lEVOLVE%newline%&7%newline%&fBanned by: &b%player%%newline%&fReason: &b%arg 2%%newline%&7%newline%&7Appeal evolvemh.tk/appeal"
  79. set {banned::%arg 1%} to true
  80. stop
  81. if {banned::%arg 1%} is true:
  82. send "&cThat player is already banned forever" to player
  83.  
  84. #command /ipban [<offlineplayer>] [<text>]:
  85. # trigger:
  86. # if arg 1 is not set:
  87. # if arg 2 is not set:
  88. # send "&bCorrect Usage: &f/ipban <player> <reason>"
  89. # if arg 1 is set:
  90. # if arg 2 is not set:
  91. # if {banned::%arg 1%} is not set:
  92. # broadcast "&b%player% &fipbanned &b%arg 1% &freason: &bUnspecified Reason &8[&3FOREVER&8]"
  93. # kick arg 1 due to "&b&lEVOLVE%newline%&7%newline%&fIP Banned by: &b%player%%newline%&fReason: &bUnspecified Reason%newline%&7%newline%&7Appeal evolvemh.tk/appeal"
  94. # ban ip of arg 1 due to "&b&lEVOLVE%newline%&7%newline%&fIP Banned by: &b%player%%newline%&fReason: &bUnspecified Reason%newline%&7%newline%&7Appeal evolvemh.tk/appeal"
  95. # set {banned::%arg 1%} to true
  96. # stop
  97. # if {banned::%arg 1%} is true:
  98. # send "&cThat player is already ip banned forever" to player
  99. #if arg 1 is set:
  100. # if arg 2 is set:
  101. # if {banned::%arg 1%} is not set:
  102. # broadcast "&b%player% &fipbanned &b%arg 1% &freason: &b%arg 2% &8[&3FOREVER&8]"
  103. # kick arg 1 due to "&b&lEVOLVE%newline%&7%newline%&fIP Banned by: &b%player%%newline%&fReason: &b%arg 2%%newline%&7%newline%&7Appeal evolvemh.tk/appeal"
  104. # ban ip of arg 1 due to "&b&lEVOLVE%newline%&7%newline%&fIP Banned by: &b%player%%newline%&fReason: &b%arg 2%%newline%&7%newline%&7Appeal evolvemh.tk/appeal"
  105. # set {banned::%arg 1%} to true
  106. # stop
  107. # if {banned::%arg 1%} is true:
  108. # send "&cThat player is already ip banned forever" to player
  109.  
  110. command /unban [<offlineplayer>]:
  111. permission: evolve.staff
  112. permission message: &cYou do not have the correct permission to use this command
  113. trigger:
  114. if arg 1 is not set:
  115. send "&bCorrect Usage: &f/unban <player>"
  116. if arg 1 is set:
  117. if {banned::%arg 1%} is true:
  118. broadcast "&b%player% &funbanned &b%arg 1%"
  119. delete {banned::%arg 1%}
  120. unban arg 1
  121. unban ip of arg 1
  122. delete {tempban::%arg 1%}
  123. stop
  124. if {tempban::%arg 1%} is true:
  125. broadcast "&b%player% &funbanned &b%arg 1%"
  126. delete {banned::%arg 1%}
  127. unban arg 1
  128. unban ip of arg 1
  129. delete {tempban::%arg 1%}
  130. stop
  131. if {banned::%arg 1%} is not set:
  132. if {tempban::%arg 1%} is not set:
  133. send "&cThat player is already unbanned" to player
  134.  
  135. #command /tempban [<offlineplayer>] [<text>] [<int>]:
  136. # trigger:
  137. # if arg 1 is not set:
  138. # if arg 2 is not set:
  139. # if arg 3 is not set:
  140. # send "&bCorrect Usage: &f/tempban <player> <timespan> <reason>"
  141. # set {tempban::%arg-1%} to true
  142. # set {tempbantime::%arg-1%} to arg 3
  143. # set {tempbanby::%arg-1%} to player
  144. # set {tempbanreason::%arg-1%} to arg 2
  145. # broadcast "&b%player% &ftempbanned &b%arg 1% &freason: &bUnspecified Reason &8[&3%arg 3%&8]"
  146. # kick arg 1 due to "&b&lEVOLVE%newline%&7%newline%&fTemp Banned by: &b%player%%newline%&fReason: &bUnspecified Reason%newline%&fLength: &b%arg 3%%newline%&7%newline%&7Appeal evolvemh.tk/appeal"
  147. # loop arg 3 times:
  148. # wait 24 hours
  149. # delete {banned::%arg 1%}
  150. # unban arg 1
  151. # unban ip of arg 1
  152. #delete {tempban::%arg 1%}
  153. #stop
  154. #if arg 1 is set:
  155. # if arg 2 is set:
  156. # if arg 3 is set:
  157. # set {tempban::%arg-1%} to true
  158. # set {tempbantime::%arg-1%} to arg 3
  159. # set {tempbanby::%arg-1%} to player
  160. # set {tempbanreason::%arg-1%} to arg 2
  161. # broadcast "&b%player% &fbanned &b%arg 1% &freason: &b%arg 2% &8[&3%arg 3%&8]"
  162. # kick arg 1 due to "&b&lEVOLVE%newline%&7%newline%&fTemp Banned by: &b%player%%newline%&fReason: &b%arg 2%%newline%&fLength: &b%arg 3% day(s)%newline%&7%newline%&7Appeal evolvemh.tk/appeal"
  163. # loop arg-3 times:
  164. # wait 24 hour
  165. # delete {banned::%arg 1%}
  166. # unban arg 1
  167. # unban ip of arg 1
  168. # delete {tempban::%arg 1%}
  169. # stop
  170.  
  171. command /warn [<offlineplayer>] [<text>]:
  172. permission: evolve.staff
  173. permission message: &cYou do not have the correct permission to use this command
  174. trigger:
  175. if arg 1 is not set:
  176. if arg 2 is not set:
  177. send "&bCorrect Usage: &f/warn <player> <reason>"
  178. if arg 1 is set:
  179. if arg 2 is not set:
  180. if {warns::%arg 1%} is not 3:
  181. add 1 to {warns::%arg 1%}
  182. broadcast "&b%player% &fwarned &b%arg 1% &freason: &bUnspecified Reason &8[&3%{warns::%arg 1%}%&8] &bwarn(s)"
  183. stop
  184. if {warns::%arg 1%} is 3:
  185. send "&cThat player currently has the max amount of warns" to player
  186. if arg 1 is set:
  187. if arg 2 is set:
  188. if {warns::%arg 1%} is not 3:
  189. add 1 to {warns::%arg 1%}
  190. broadcast "&b%player% &fwarned &b%arg 1% &freason: &b%arg 2% &8[&3%{warns::%arg 1%}% warn(s)&8]"
  191. stop
  192. if {warns::%arg 1%} is 3:
  193. send "&cThat player currently has the max amount of warns" to player
  194.  
  195. command /unwarn [<offlineplayer>]:
  196. permission: evolve.staff
  197. permission message: &cYou do not have the correct permission to use this command
  198. trigger:
  199. if arg 1 is not set:
  200. send "&bCorrect Usage: &f/unwarn <player>"
  201. if arg 1 is set:
  202. if {warns::%arg 1%} is 3 or 2 or 1:
  203. remove 1 from {warns::%arg 1%}
  204. broadcast "&b%player% &frevoked 1 of &b%arg 1%&f's warns &8[&3%{warns::%arg 1%}% warn(s)&8]"
  205. stop
  206. if {warns::%arg 1%} is 0:
  207. send "&cThat player currently does not have any warns" to player
  208.  
  209. command /history [<offlineplayer>]:
  210. permission: evolve.staff
  211. permission message: &cYou do not have the correct permission to use this command
  212. trigger:
  213. if arg 1 is not set:
  214. send "&bCorrect Usage: &f/history <player>"
  215. if arg 1 is set:
  216. send ""
  217. send " &b&l%arg 1%&b's stats"
  218. send ""
  219. if arg 1 is online:
  220. send " &8• &eIs online &8» &a&l✔"
  221. if arg 1 is offline:
  222. send " &8• &eIs online &8» &c&l✘"
  223. if {mute::%arg 1%} is true:
  224. send " &8• &eIs muted &8» &a&l✔"
  225. if {mute::%arg 1%} is not set:
  226. send " &8• &eIs muted &8» &c&l✘"
  227. if {warns::%arg 1%} is 0:
  228. send " &8• &eWarns &8» &c&l0"
  229. if {warns::%arg 1%} is 1 or 2 or 3:
  230. send " &8• &eWarns &8» &a&l%{warns::%arg 1%}%"
  231. if {banned::%arg 1%} is true:
  232. send " &8• &eIs banned &8» &a&l✔"
  233. if {banned::%arg 1%} is not set:
  234. send " &8• &eIs banned &8» &c&l✘"
  235. send ""
  236. on connect:
  237. if {tempban::%player%} is true:
  238. kick player due to "&b&lEVOLVE%newline%&7%newline%&fTemp Banned by: &b%{tempbanby::%player%}%%newline%&fReason: &b%{tempbanreason::%player%}%%newline%&fLength: &b%{tempbantime::%player%}% day(s)%newline%&7%newline%&7Appeal evolvemh.tk/appeal"
Add Comment
Please, Sign In to add comment