Advertisement
Guest User

Untitled

a guest
Aug 25th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.83 KB | None | 0 0
  1. on load:
  2. send "------------------------" to console
  3. send " " to console
  4. send "PUNISHMENT V1.4" to console
  5. send "Created by iDanq!" to console
  6. send "All rights reserved ? **2018**" to console
  7. send " " to console
  8. send "------------------------" to console
  9.  
  10. #-----------------------------------------
  11.  
  12. # PERMISSIONS
  13.  
  14. options:
  15. jrmodperm: punish.mod.use
  16.  
  17. modperm: punish.srmod.use
  18.  
  19. adminperm: punish.admin.use
  20.  
  21. punish-notify: punish.notify
  22.  
  23. punish-bypass: punish.excempt
  24.  
  25. ac-notify: anticheat.notify
  26.  
  27. ac-perm: anticheat.admin
  28.  
  29. ac-bypass: anticheat.admin.bypass
  30.  
  31. anti-alt: true
  32.  
  33. #Prevent players from bypassing their punishment when given!
  34. #Change value to 'true' to stop that from happening!
  35.  
  36. anti-gamemode: false
  37.  
  38. #change this value 'true' if you're using CreateYourOwnMenu plugin
  39. #This option is only added due to players can forceop if you accidently
  40. #Give the player creative
  41. #CreateYourOwnMenu plugin has some exploits that this is why this is added
  42.  
  43. anti-forceop: true
  44.  
  45. #change this value to 'true' if you dont want hackers to ForceOp!
  46.  
  47. # ANTI-ALT
  48.  
  49. command /alt [<offline player>]:
  50. permission: alt.use
  51. trigger:
  52. if {@anti-alt} is true:
  53. if arg 1 is not set:
  54. send "&4&lAntiCheat &8&l? &7Usage: /alt <&cplayer&7>"
  55. stop
  56. if {ip.%arg 1%} is not set:
  57. send "&4&lAntiCheat &8&l? &cThis player has never joined the server!"
  58. stop
  59. if {firstalt.%{ip.%arg 1%}%} is not set:
  60. send "&4&lAntiCheat &8&l? &cThis player has never joined the server!"
  61. stop
  62. else:
  63. send "&4&lAntiCheat &8&l? &7Alt of &b%arg 1%&7: &3%{altip.%{ip.%arg 1%}%::*}% &8| &7Main Account: &3%{firstalt.%{ip.%arg 1%}%}%&7."
  64. else:
  65. message "&9Server> &cEnable this AntiAlt system in config!"
  66. on join:
  67. if {@anti-alt} is true:
  68. if {ip.%player%} is not set:
  69. remove player from {altip.%ip of player%::*}
  70. wait 1 tick
  71. add player to {altip.%ip of player%::*}
  72. set {ip.%player%} to ip of player
  73. if {firstalt.%ip of player%} is not set:
  74. remove player from {altip.%ip of player%::*}
  75. wait 1 tick
  76. add player to {altip.%ip of player%::*}
  77. set {firstalt.%ip of player%} to player's name
  78. else:
  79. remove "%player%" from {altip.%ip of player%::*}
  80. wait 1 tick
  81. add player to {altip.%ip of player%::*}
  82. if {firstalt.%ip of player%} is set:
  83. set {_name} to player's name
  84. if {_name} is {firstalt.%ip of player%}:
  85. stop
  86. else:
  87. loop all players:
  88. if loop-player has permission "alt.see":
  89. send "&4&lAntiCheat &8&l? &b%{_name}% &7might be an alt of &3%{firstalt.%ip of player%}%&7!" to loop-player
  90. loop {altip.%ip of player%::*}:
  91. if loop-value is banned:
  92. ban player because "&cBan evading"
  93. kick player because "&cBan evading"
  94. set {banned.al.%player%} to true
  95. broadcast "&4&lAntiCheat &8&l? &7User &b%player% &7is now banned for &cBan Evading&7! (Alt: &3%loop-value%&7)"
  96. else:
  97. if player has permission "alt.use":
  98. message "&9Server> &cEnable this AntiAlt system in config!"
  99. else:
  100. stop
  101.  
  102. # ANTI-FORCEOP
  103.  
  104. every 10 ticks:
  105. loop all players:
  106. if {@anti-forceop} is true:
  107. if loop-player is op:
  108. if {opped.%uuid of loop-player%} is not set:
  109. deop loop-player
  110. execute console command "/minecraft:clear %loop-player%"
  111. set loop-player's gamemode to survival
  112. kick loop-player because "&4&lAntiCheat &8&l? &7Kicked from server due to ForceOp!"
  113. if loop-player has permission "{@ac-notify}":
  114. message "&4&lAntiCheat &8&l? &3%loop-player% &7tried to ForceOp! (User now kicked from server)" to loop-player
  115.  
  116. command /setpass [<text>] [<text>]:
  117. permission: {@ac-perm}
  118. permission message: &cIncorrect permissions!
  119. trigger:
  120. if executor is a player:
  121. if arg 1 is not set:
  122. if arg 2 is not set:
  123. if {@anti-forceop} is true:
  124. message "&9Server> &cUsage: /setpass <new password> <confirm password>"
  125. else:
  126. message "&9Server> &cAnti-ForceOp is currently disabled. Please enable it!"
  127. if arg 1 is set:
  128. if arg 2 is not set:
  129. if {@anti-forceop} is true:
  130. message "&9Server> &cUsage: /setpass <new password> <confirm password>"
  131. else:
  132. message "&9Server> &cAnti-ForceOp is currently disabled. Please enable it!"
  133. if arg 1 is set:
  134. if arg 2 is not arg 1:
  135. message "&9Server> &cPlease verify password!"
  136. if arg 1 is set:
  137. if arg 2 is arg 1:
  138. set {password} to arg 2
  139. message "&3Success! Password changed to &b%arg 2%&3."
  140. else:
  141. message "This command can only be executed by players only!"
  142. stop
  143.  
  144. command /op [<offline player>] [<text>]:
  145. permission: {@ac-perm}
  146. permission message: &cIncorrect permissions!
  147. trigger:
  148. if executor is a player:
  149. if arg 1 is not set:
  150. if arg 2 is not set:
  151. if {password} is set:
  152. message "&9Server> &cUsage: /op <player> <password>"
  153. else:
  154. message "&9Server> &cUsage: /setpass <new password> <confirm password>"
  155. if arg 1 is set:
  156. if arg 2 is not set:
  157. if {password} is set:
  158. message "&9Server> &cUsage: /op <player> <password>"
  159. else:
  160. message "&9Server> &cUsage: /setpass <new password> <confirm password>"
  161. if arg 1 is set:
  162. if arg 2 is not "%{password}%":
  163. if {password} is set:
  164. message "&9Server> &cIncorrect password!"
  165. else:
  166. message "&9Server> &cUsage: /setpass <new password> <confirm password>"
  167. if arg 1 is set:
  168. if arg 2 is set:
  169. if arg 2 is "%{password}%":
  170. if {password} is set:
  171. op arg-1
  172. set {opped.%uuid of arg-1%} to true
  173. add arg 1 to {opped::*}
  174. message "&9Server> &aSuccess! User is now opped and now bypassing server AntiCheat!"
  175. else:
  176. message "&9Server> &cUsage: /setpass <new password> <confirm password>"
  177.  
  178. command /deop [<offline player>] [<text>]:
  179. permission: {@ac-perm}
  180. permission message: &cIncorrect permissions!
  181. trigger:
  182. if executor is a player:
  183. if arg 1 is not set:
  184. if arg 2 is not set:
  185. if {password} is set:
  186. message "&9Server> &cUsage: /deop <player> <password>"
  187. else:
  188. message "&9Server> &cUsage: /setpass <new password> <confirm password>"
  189. if arg 1 is set:
  190. if arg 2 is not set:
  191. if {password} is set:
  192. message "&9Server> &cUsage: /deop <player> <password>"
  193. else:
  194. message "&9Server> &cUsage: /setpass <new password> <confirm password>"
  195. if arg 1 is set:
  196. if arg 2 is not "%{password}%":
  197. if {password} is set:
  198. message "&9Server> &cIncorrect password!"
  199. else:
  200. message "&9Server> &cUsage: /setpass <new password> <confirm password>"
  201. if arg 1 is set:
  202. if arg 2 is set:
  203. if arg 2 is "%{password}%":
  204. if {password} is set:
  205. deop arg-1
  206. delete {opped.%uuid of arg-1%}
  207. remove arg 1 from {opped::*}
  208. message "&9Server> &aSuccess! User is now deopped and now being watched by server AntiCheat!"
  209. wait 0.3 seconds
  210. if arg 1 is "iDanq":
  211. message "&9Server> &cThat user cannot be deopped. That's our master!"
  212. message "&9Server> &cThe master of DanqNetwork can never be deopped!"
  213. op arg-1
  214. set {opped.%uuid of arg-1%} to true
  215. add arg 1 to {opped::*}
  216. else:
  217. message "&9Server> &cUsage: /setpass <new password> <confirm password>"
  218.  
  219. command /oplist:
  220. permission: {@ac-perm}
  221. permission message: &cIncorrect permissions!
  222. aliases: /ops
  223. trigger:
  224. message "&9Server> &7Opped Players: &3%{opped::*}%"
  225.  
  226. command /showpsw:
  227. permission: {@ac-perm}
  228. permission message: &cIncorrect permissions!
  229. trigger:
  230. if {password} is set:
  231. message "&9Server> &7Password: &3%{password}%"
  232. else:
  233. message "&9Server> &cIt seems like you don't have a password yet!"
  234.  
  235. # ANTI-GAMEMODE
  236.  
  237. every 10 ticks:
  238. loop all players:
  239. if loop-player's gamemode is creative:
  240. if {@anti-gamemode} is true:
  241. if loop-player does not have permission "{@ac-bypass}":
  242. set loop-player's gamemode to adventure
  243. execute console command "/minecraft:clear %loop-player%"
  244. kick loop-player because "&c&lAntiCheat? &7You have been kicked from the server! Due to your gamemode is creative &7and &7suspect of ForceOp!"
  245. if loop-player has permission "{@ac-notify}":
  246. message "&4&lAntiCheat &8&l? &7User &b%loop-player% &7has been kicked from the server due to gamemode detection! Suspect of ForceOp!" to loop-player
  247. else:
  248. stop
  249. else:
  250. stop
  251.  
  252. # CHECK PLAYER PUNISHMENT IF BANNED OR MUTED
  253.  
  254. command /check [<offline player>] [<text>]:
  255. permission: {@jrmodperm}
  256. permission message: &cIncorrect permissions!
  257. trigger:
  258. if arg 1 is set:
  259. if arg 2 is not set:
  260. if {banned.%arg 1%} is set:
  261. if {muted.%arg 1%} is set:
  262. message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Banned: &aYes &8| &7Muted: &aYes"
  263. message "&4&lPUNISHMENT &8&l? &7Warning's Received: &3%{warns.%arg 1%}%"
  264. message "&4&lPUNISHMENT &8&l? &7ID: &3%uuid of arg-1%"
  265. if {banned.%arg 1%} is not set:
  266. if {muted.%arg 1%} is set:
  267. message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Banned: &cNo &8| &7Muted: &aYes"
  268. message "&4&lPUNISHMENT &8&l? &7Warning's Received: &3%{warns.%arg 1%}%"
  269. message "&4&lPUNISHMENT &8&l? &7ID: &3%uuid of arg-1%"
  270. if {banned.%arg 1%} is not set:
  271. if {muted.%arg 1%} is not set:
  272. message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Banned: &cNo &8| &7Muted: &cNo"
  273. message "&4&lPUNISHMENT &8&l? &7Warning's Received: &3%{warns.%arg 1%}%"
  274. message "&4&lPUNISHMENT &8&l? &7ID: &3%uuid of arg-1%"
  275. if {banned.%arg 1%} is set:
  276. if {muted.%arg 1%} is not set:
  277. message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Banned: &aYes &8| &7Muted: &cNo"
  278. message "&4&lPUNISHMENT &8&l? &7Warning's Received: &3%{warns.%arg 1%}%"
  279. message "&4&lPUNISHMENT &8&l? &7ID: &3%uuid of arg-1%"
  280. if arg 1 is not set:
  281. if arg 2 is not "mute" or "tempmute" or "ban":
  282. message "&4&lPUNISHMENT &8&l? &7Usage: /check <&cplayer&7>"
  283. message "&4&lPUNISHMENT &8&l? &7Usage: /check <&8%arg 1%&7> <&cmute/tempmute/ban&7>"
  284. message "&4&lPUNISHMENT &8&l? &7Check's the player ban/mute reason and when it expires!"
  285. if arg 1 is set:
  286. if arg 2 is "mute":
  287. if {muted.%arg 1%} is set:
  288. message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Muted: &aYes"
  289. message "&4&lPUNISHMENT &8&l? &7Reason of punishment: &c%{permmute.reason.%arg 1%}%"
  290. message "&4&lPUNISHMENT &8&l? &7Expires: &cNever"
  291. if arg 1 is set:
  292. if arg 2 is "mute":
  293. if {muted.%arg 1%} is not set:
  294. message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Muted: &cNo"
  295. message "&4&lPUNISHMENT &8&l? &7Reason of punishment: &c(No data record were found)"
  296. message "&4&lPUNISHMENT &8&l? &7Expires: &c(No data record was found)"
  297. if arg 1 is set:
  298. if arg 2 is "tempmute":
  299. if {muted.%arg 1%} is set:
  300. message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Muted: &aYes"
  301. message "&4&lPUNISHMENT &8&l? &7Reason of punishment: &c%{mutereason.%arg 1%}%"
  302. message "&4&lPUNISHMENT &8&l? &7Expires: &c%difference between {mute.%arg 1%} and {_waited}%"
  303. if arg 1 is set:
  304. if arg 2 is "tempmute":
  305. if {muted.%arg 1%} is not set:
  306. message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Muted: &cNo"
  307. message "&4&lPUNISHMENT &8&l? &7Reason of punishment: &c(No data record were found)"
  308. message "&4&lPUNISHMENT &8&l? &7Expires: &c(No data record were found)"
  309.  
  310.  
  311. # BAN / UNBAN
  312.  
  313. command /ban [<offline player>] [<text>]:
  314. permission: {@jrmodperm}
  315. permission message: &cIncorrect permissions!
  316. trigger:
  317. if arg 1 is not set:
  318. if arg 2 is not set:
  319. if executor is a player:
  320. message "&4&lPUNISHMENT &8&l? &7Usage: /ban <&cplayer&7> <&8reason&7>"
  321. else:
  322. message "Usage: /ban <player> <reason>"
  323. if arg 1 is set:
  324. if arg 2 is not set:
  325. if executor is a player:
  326. message "&4&lPUNISHMENT &8&l? &7Usage: /ban <&8%arg 1%&7> <&creason&7>"
  327. else:
  328. message "Usage: /ban <%arg 1%> <reason>"
  329. if arg 1 is set:
  330. if arg 2 is set:
  331. if arg 1 has permission "{@punish-bypass}":
  332. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to ban member of staff!"
  333. else:
  334. if {banned.%arg 1%} is not set:
  335. if executor is a player:
  336. set {banned.%arg 1%} to true
  337. set {server.banperm.%uuid of arg 1%} to true
  338. set {server.banreason.%arg 1%} to arg 2
  339. kick arg 1 because "%newline%&7You are banned from this server!%newline%&7Reason: &c%{server.banreason.%arg 1%}%%newline%&7Expires: &cNever%newline%%newline%&7Appeal at &bhttps://discord.gg/PrKTmq7%newline%"
  340. ban arg 1 due to "%newline%&7You are banned from this server!%newline%&7Reason: &c%{server.banreason.%arg 1%}%%newline%&7Expires: &cNever%newline%%newline%&7Appeal at &bhttps://discord.gg/PrKTmq7%newline%"
  341. broadcast "&b%player% &7banned &3%arg 1% &7for &c%arg 2% &7[Forever]"
  342. else:
  343. set {banned.%arg 1%} to true
  344. set {server.banperm.%uuid of arg 1%} to true
  345. set {server.banreason.%arg 1%} to arg 2
  346. kick arg 1 because "%newline%&7You are banned from this server!%newline%&7Reason: &c%{server.banreason.%player%}%%newline%&7Expires: &cNever%newline%%newline%&7Appeal at &bhttps://discord.gg/PrKTmq7%newline%"
  347. ban arg 1 due to "%newline%&7You are banned from this server!%newline%&7Reason: &c%{server.banreason.%player%}%%newline%&7Expires: &cNever%newline%%newline%&7Appeal at &bhttps://discord.gg/PrKTmq7%newline%"
  348. broadcast "&bConsole &7banned &3%arg 1% &7for &c%arg 2% &7[Forever]"
  349. message "You have banned %arg 1% for %arg 2%! [Forever]" to console
  350. else:
  351. message "&4&lPUNISHMENT &8&l? &cThat player is already banned!"
  352.  
  353. on quit:
  354. if {server.banperm.%uuid of player%} is set:
  355. set quit message to ""
  356. else:
  357. set quit message to " &c%player% Left."
  358.  
  359. on join:
  360. if {server.banperm.%uuid of player%} is set:
  361. if {server.banreason.%player%} is set:
  362. set join message to ""
  363. kick player because "%newline%&7You are banned from this server!%newline%&7Reason: &c%{server.banreason.%player%}%%newline%&7Expires: &cNever%newline%%newline%&7Appeal At &bDanqEscape.forums.gg/forums%newline%"
  364. loop all players:
  365. if loop-player has permission "{@punish-notify}":
  366. message "&4&lPUNISHMENT &8&l? &b%player% &7tried to join the server, but is banned!"
  367. else:
  368. set join message to " &a%player% Joined."
  369.  
  370. command /unban [<offline player>]:
  371. permission: {@jrmodperm}
  372. permission message: &cIncorrect permissions!
  373. trigger:
  374. if arg 1 is not set:
  375. if executor is a player:
  376. message "&4&lPUNISHMENT &8&l? &7Usage: /unban <&cplayer&7>"
  377. else:
  378. message "Usage: /unban <player>"
  379. if arg 1 is set:
  380. if {banned.%arg 1%} is set:
  381. if executor is a player:
  382. delete {server.banperm.%uuid of arg 1%}
  383. delete {server.banreason.%arg 1%}
  384. delete {banned.%arg 1%}
  385. delete {tempban.%arg 1%}
  386. delete {tempban2.%arg 1%}
  387. delete {tempban.reason.%arg 1%}
  388. unban arg-1
  389. unban ip of arg 1
  390. broadcast "&b%player% &7unbanned &3%arg 1%"
  391. else:
  392. delete {banned.%arg 1%}
  393. delete {tempban.%arg 1%}
  394. delete {tempban2.%arg 1%}
  395. delete {tempban.reason.%arg 1%}
  396. delete {server.banperm.%uuid of arg 1%}
  397. delete {server.banreason.%arg 1%}
  398. unban arg-1
  399. unban ip of arg 1
  400. broadcast "&bConsole &7unbanned &3%arg 1%"
  401. message "You have unbanned %arg 1%" to console
  402. else:
  403. message "&4&lPUNISHMENT &8&l? &cIt seems like that player is not banned from the server!"
  404.  
  405.  
  406. # BAN-IP
  407.  
  408. command /banip [<offline player>] [<text>]:
  409. permission: {@modperm}
  410. permission message: &cIncorrect permissions!
  411. trigger:
  412. if arg 1 is not set:
  413. if arg 2 is not set:
  414. message "&4&lPUNISHMENT &8&l? &7Usage: /banip <&cplayer&7> <&8reason&7>"
  415. if arg 1 is set:
  416. if arg 2 is not set:
  417. message "&4&lPUNISHMENT &8&l? &7Usage: /banip <&8%arg 1%&7> <&creason&7>"
  418. if arg 1 is set:
  419. if arg 2 is set:
  420. if arg 1 has permission "{@punish-bypass}":
  421. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to ban member of staff!"
  422. else:
  423. if {banned.%arg 1%} is not set:
  424. set {banned.%arg 1%} to true
  425. set {server.banreason.%arg 1%} to arg 2
  426. kick arg 1 because "&7You are ip-banned from this server! &8| &7Reason: &c%{server.banreason.%arg 1%}% &8| &7Expires: &cNever"
  427. ban ip of arg 1 due to "&7You are ip-banned from this server! &8| &7Reason: &c%{server.banreason.%arg 1%}% &8| &7Expires: &cNever"
  428. broadcast "&b%player% &7ip-banned &3%arg 1% &7for &c%arg 2% &7[Forever]"
  429. else:
  430. message "&4&lPUNISHMENT &8&l? &cThat player is already banned!"
  431.  
  432. # KICK
  433.  
  434. command /kick [<offline player>] [<text>]:
  435. permission: {@jrmodperm}
  436. permission message: &cIncorrect permissions!
  437. trigger:
  438. if arg 1 is not set:
  439. if arg 1 is not set:
  440. message "&4&lPUNISHMENT &8&l? &7Usage: /kick <&cplayer&7> <&8reason&7>"
  441. if arg 1 is set:
  442. if arg 2 is not set:
  443. message "&4&lPUNISHMENT &8&l? &7Usage: /kick <&8%arg 1%&7> <&creason&7>"
  444. if arg 1 is set:
  445. if arg 2 is set:
  446. if offlineplayer-arg is online:
  447. if executor is a player:
  448. if arg 1 has permission "{@punish-bypass}":
  449. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to kick member of staff!"
  450. else:
  451. kick arg 1 because "%newline%&7You have been kicked from the server!%newline%&7Reason: &c%arg 2%%newline%"
  452. set {kick.%arg 1%} to true
  453. broadcast "&b%player% &7kicked &3%arg 1% &7for &c%arg 2%"
  454. else:
  455. if arg 1 has permission "{@punish-bypass}":
  456. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to kick member of staff!"
  457. else:
  458. kick arg 1 because "%newline%&7You have been kicked from the server!%newline%&7Reason: &c%arg 2%%newline%"
  459. broadcast "&bConsole &7kicked &3%arg 1% &7for &c%arg 2%"
  460. send "You have kicked %arg 1% from the server for %arg 2%" to console
  461. else:
  462. message "&4&lPUNISHMENT &8&l? &cThat player is offline!"
  463.  
  464. on quit:
  465. if {kick.%player%} is set:
  466. set quit message to ""
  467. delete {kick.%player%}
  468. else:
  469. set quit message to " &c%player% Left."
  470.  
  471. # MUTE / TEMPMUTE / UNMUTE (BLOCKS COMMANDS ON MUTE)
  472.  
  473. command /unmute [<offline player>]:
  474. permission: {@jrmodperm}
  475. permission message: &cIncorrect permissions!
  476. trigger:
  477. if arg 1 is not set:
  478. message "&4&lPUNISHMENT &8&l? &7Usage: /unmute <&cplayer&7>"
  479. if arg 1 is set:
  480. if executor is a player:
  481. if arg 1 has permission "{@punish-bypass}":
  482. message "&4&lPUNISHMENT &8&l? &cThat player cannot be unmuted because they're immune to punishments!"
  483. else:
  484. if {muted.%arg 1%} is set:
  485. delete {muted.%arg 1%}
  486. delete {permmute.%arg 1%}
  487. delete {permmute.reason.%arg 1%}
  488. delete {mute.%arg 1%}
  489. delete {mute2.%arg 1%}
  490. delete {mutereason.%arg 1%}
  491. broadcast "&b%player% &7unmuted &3%arg 1%"
  492. else:
  493. message "&4&lPUNISHMENT &8&l? &cThat player is not muted!"
  494. else:
  495. if arg 1 has permission "{@punish-bypass}":
  496. message "&4&lPUNISHMENT &8&l? &cThat player cannot be unmuted because they're immune to punishments!"
  497. else:
  498. if {muted.%arg 1%} is set:
  499. delete {muted.%arg 1%}
  500. delete {permmute.%arg 1%}
  501. delete {permmute.reason.%arg 1%}
  502. delete {mute.%arg 1%}
  503. delete {mute2.%arg 1%}
  504. delete {mutereason.%arg 1%}
  505. broadcast "&bConsole &7unmuted &3%arg 1%"
  506. send "You have unmuted %arg 1%" to console
  507. else:
  508. message "&4&lPUNISHMENT &8&l? &cThat player is not muted!"
  509.  
  510. command /mute [<offline player>] [<text>]:
  511. permission: {@jrmodperm}
  512. permission message: &cIncorrect permissions!
  513. trigger:
  514. if arg 1 is not set:
  515. if arg 2 is not set:
  516. message "&4&lPUNISHMENT &8&l? &7Usage: /mute <&cplayer&7> <&8reason&7>"
  517. if arg 1 is set:
  518. if arg 2 is not set:
  519. message "&4&lPUNISHMENT &8&l? &7Usage: /mute <&8%arg 1%&7> <&creason&7>"
  520. if arg 1 is set:
  521. if arg 2 is set:
  522. if executor is a player:
  523. if arg 1 has permission "{@punish-bypass}":
  524. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to mute member of staff!"
  525. else:
  526. if {muted.%arg 1%} is not set:
  527. set {muted.%arg 1%} to true
  528. set {permmute.%arg 1%} to true
  529. set {permmute.reason.%arg 1%} to arg 2
  530. broadcast "&b%player% &7muted &3%arg 1% &7for &c%arg 2% &7[Forever]"
  531. else:
  532. message "&4&lPUNISHMENT &8&l? &cThat player is already muted!"
  533. else:
  534. if arg 1 has permission "{@punish-bypass}":
  535. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to mute member of staff!"
  536. else:
  537. if {muted.%arg 1%} is not set:
  538. set {muted.%arg 1%} to true
  539. set {permmute.%arg 1%} to true
  540. broadcast "&bConsole &7muted &3%arg 1% &7for &c%arg 2% &7[Forever]"
  541. send "You have muted %arg 1% for %arg 2% [forever]" to console
  542. else:
  543. message "&4&lPUNISHMENT &8&l? &cThat player is already muted!"
  544.  
  545. on chat:
  546. if {permmute.%player%} is set:
  547. if {permmute.reason.%player%} is set:
  548. cancel event
  549. message "&7You are permanently muted for &c%{permmute.reason.%player%}%&7."
  550.  
  551. command /tempmute [<offline player>] [<text>] [<timespan>]:
  552. permission: {@jrmodperm}
  553. permission message: &cIncorrect permissions!
  554. trigger:
  555. if arg 1 is not set:
  556. if arg 2 is not set:
  557. if arg 3 is not set:
  558. message "&4&lPUNISHMENT &8&l? &7Usage: /tempmute <&cplayer&7> <&8reason&7> <&8time|form&7>"
  559. if arg 1 is set:
  560. if arg 2 is not set:
  561. if arg 3 is not set:
  562. message "&4&lPUNISHMENT &8&l? &7Usage: /tempmute <&8%arg 1%&7> <&creason&7> <&8time|form&7>"
  563. if arg 1 is set:
  564. if arg 2 is set:
  565. if arg 3 is not set:
  566. message "&4&lPUNISHMENT &8&l? &7Usage: /tempmute <&8%arg 1%&7> <&8%arg 2%&7> <&ctime|form&7>"
  567. if arg 1 is set:
  568. if arg 2 is set:
  569. if arg 3 is set:
  570. if executor is a player:
  571. if arg 1 has permission "{@punish-bypass}":
  572. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to mute member of staff!"
  573. else:
  574. if {muted.%arg 1%} is not set:
  575. set {muted.%arg 1%} to true
  576. set {mute.%arg 1%} to arg 3
  577. set {mute2.%arg 1%} to now
  578. set {mutereason.%arg 1%} to arg 2
  579. broadcast "&b%player% &7muted &3%arg 1% &7for &c%arg 2% &7[%arg 3%]"
  580. else:
  581. message "&4&lPUNISHMENT &8&l? &cThat player is already muted!"
  582. else:
  583. if arg 1 has permission "{@punish-bypass}":
  584. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to mute member of staff!" to console
  585. else:
  586. if {muted.%arg 1%} is not set:
  587. set {muted.%arg 1%} to true
  588. set {mute.%arg 1%} to arg 3
  589. set {mute2.%arg 1%} to now
  590. set {mutereason.%arg 1%} to arg 2
  591. broadcast "&bConsole &7muted &3%arg 1% &7for &c%arg 2% &7[%arg 3%]"
  592. send "You have muted %arg 1% for %arg 2%. [%arg 3%]" to console
  593. else:
  594. message "&4&lPUNISHMENT &8&l? &cThat player is already muted!" to console
  595. on chat:
  596. if {mute.%player%} is set:
  597. set {_waited} to difference between {mute2.%player%} and now
  598. if {_waited} is 0:
  599. message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
  600. cancel event
  601. else:
  602. delete {muted.%player%}
  603. delete {mute.%player%}
  604. delete {mute2.%player%}
  605. delete {mutereason.%player%}
  606. message "&4&lPUNISHMENT &8&l? &7You have been unmuted by system! Next time follow the server rules!"
  607. cancel event
  608.  
  609.  
  610. on command "/minecraft:t":
  611. if {mute.%player%} is set:
  612. if {mutereason.%player%} is set:
  613. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  614. cancel event
  615. on command "/minecraft:tell":
  616. if {mute.%player%} is set:
  617. if {mutereason.%player%} is set:
  618. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  619. cancel event
  620. on command "/minecraft:w":
  621. if {mute.%player%} is set:
  622. if {mutereason.%player%} is set:
  623. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  624. cancel event
  625. on command "/msg":
  626. if {mute.%player%} is set:
  627. if {mutereason.%player%} is set:
  628. set {_waited} to difference between {mute2.%player%} and now
  629. if {_waited} is less than {mute.%player%}:
  630. message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
  631. cancel event
  632. on command "/message":
  633. if {mute.%player%} is set:
  634. if {mutereason.%player%} is set:
  635. set {_waited} to difference between {mute2.%player%} and now
  636. if {_waited} is less than {mute.%player%}:
  637. message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
  638. cancel event
  639. on command "/r":
  640. if {mute.%player%} is set:
  641. if {mutereason.%player%} is set:
  642. set {_waited} to difference between {mute2.%player%} and now
  643. if {_waited} is less than {mute.%player%}:
  644. message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
  645. cancel event
  646. on command "/reply":
  647. if {mute.%player%} is set:
  648. if {mutereason.%player%} is set:
  649. set {_waited} to difference between {mute2.%player%} and now
  650. if {_waited} is less than {mute.%player%}:
  651. message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
  652. cancel event
  653. on command "/w":
  654. if {mute.%player%} is set:
  655. if {mutereason.%player%} is set:
  656. set {_waited} to difference between {mute2.%player%} and now
  657. if {_waited} is less than {mute.%player%}:
  658. message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
  659. cancel event
  660. on command "/whisper":
  661. if {mute.%player%} is set:
  662. if {mutereason.%player%} is set:
  663. set {_waited} to difference between {mute2.%player%} and now
  664. if {_waited} is less than {mute.%player%}:
  665. message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
  666. cancel event
  667. on command "/tell":
  668. if {mute.%player%} is set:
  669. if {mutereason.%player%} is set:
  670. set {_waited} to difference between {mute2.%player%} and now
  671. if {_waited} is less than {mute.%player%}:
  672. message "&7You are muted for &c%{mutereason.%player%}% &7for &c%{mute.%player%}%&7."
  673. cancel event
  674. on command "/t":
  675. if {mute.%player%} is set:
  676. if {mutereason.%player%} is set:
  677. set {_waited} to difference between {mute2.%player%} and now
  678. if {_waited} is less than {mute.%player%}:
  679. message "&7You are muted for &c%{mutereason.%player%}% &7for &c%{mute.%player%}%&7."
  680. cancel event
  681. on command "/msg":
  682. if {muteperm.%player%} is set:
  683. if {mutereason.%player%} is set:
  684. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  685. cancel event
  686. on command "/message":
  687. if {muteperm.%player%} is set:
  688. if {mutereason.%player%} is set:
  689. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  690. cancel event
  691. on command "/r":
  692. if {muteperm.%player%} is set:
  693. if {mutereason.%player%} is set:
  694. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  695. cancel event
  696. on command "/reply":
  697. if {muteperm.%player%} is set:
  698. if {mutereason.%player%} is set:
  699. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  700. cancel event
  701. on command "/w":
  702. if {muteperm.%player%} is set:
  703. if {mutereason.%player%} is set:
  704. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  705. cancel event
  706. on command "/whisper":
  707. if {muteperm.%player%} is set:
  708. if {mutereason.%player%} is set:
  709. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  710. cancel event
  711. on command "/tell":
  712. if {muteperm.%player%} is set:
  713. if {mutereason.%player%} is set:
  714. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  715. cancel event
  716. on command "/t":
  717. if {muteperm.%player%} is set:
  718. if {mutereason.%player%} is set:
  719. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  720. cancel event
  721. on command "/minecraft:t":
  722. if {muteperm.%player%} is set:
  723. if {mutereason.%player%} is set:
  724. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  725. cancel event
  726. on command "/minecraft:tell":
  727. if {muteperm.%player%} is set:
  728. if {mutereason.%player%} is set:
  729. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  730. cancel event
  731. on command "/minecraft:w":
  732. if {muteperm.%player%} is set:
  733. if {mutereason.%player%} is set:
  734. message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
  735. cancel event
  736.  
  737. # FREEZE / UNFREEZE
  738.  
  739. on any movement:
  740. if {freeze.%player%} is set:
  741. cancel event
  742. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to move while frozen!"
  743.  
  744. on quit:
  745. if {freeze.%player%} is set:
  746. delete {freeze.%player%}
  747.  
  748. on command:
  749. if {freeze.%player%} is set:
  750. cancel event
  751. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to use that command while frozen!"
  752. else:
  753. stop
  754.  
  755. command /freeze [<offline player>]:
  756. permission: {@modperm}
  757. permission message: &cIncorrect permissions
  758. trigger:
  759. if arg 1 is set:
  760. if offlineplayer-arg is online:
  761. if arg 1 has permission "{@punish-bypass}":
  762. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to freeze member of staff!"
  763. else:
  764. set {freeze.%arg 1%} to true
  765. message "&4&lPUNISHMENT &8&l? &7You are now frozen!" to arg 1
  766. message "&4&lPUNISHMENT &8&l? &7You have freezed &3%arg 1%&7." to player
  767. else:
  768. message "&4&lPUNISHMENT &8&l? &cThat player is offline!"
  769. else:
  770. message "&4&lPUNISHMENT &8&l? &7Usage: /freeze <&cplayer&7>"
  771.  
  772. command /unfreeze [<offline player>]:
  773. permission: {@modperm}
  774. permission message: &cIncorrect permissions
  775. trigger:
  776. if arg 1 is set:
  777. if offlineplayer-arg is online:
  778. if arg 1 has permission "{@punish-bypass}":
  779. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to freeze member of staff!"
  780. else:
  781. delete {freeze.%arg 1%}
  782. message "&4&lPUNISHMENT &8&l? &7You are now unfrozen!" to arg 1
  783. message "&4&lPUNISHMENT &8&l? &7You have unfreezed &3%arg 1%&7." to player
  784. else:
  785. message "&4&lPUNISHMENT &8&l? &cThat player is offline!"
  786. else:
  787. message "&4&lPUNISHMENT &8&l? &7Usage: /unfreeze <&cplayer&7>"
  788.  
  789. # FORCE THE SERVER TO UNBAN THE USER IF /UNBAN BREAKS AND DOESN'T UNBAN THE PLAYER!
  790.  
  791. command /forceunban <offline player>:
  792. permission: {@adminperm}
  793. permission message: &cIncorrect permissions!
  794. trigger:
  795. if arg 1 is not set:
  796. message "&4&lPUNISHMENT &8&l? &7Usage: /forceunban <&cplayer&7>"
  797. if arg 1 is set:
  798. delete {banned.%arg 1%}
  799. delete {tempban.%arg 1%}
  800. delete {tempban2.%arg 1%}
  801. delete {tempban.reason.%arg 1%}
  802. unban arg-1
  803. unban ip of arg 1
  804. message "&aPlayer is now unbanned!"
  805. broadcast "&9Server> &7User &b%player% &7has forced the server to unban Player &3%arg 1%&7!"
  806.  
  807. # TEMPBAN
  808.  
  809. command /tempban [<offline player>] [<text>] [<timespan>]:
  810. permission: {@jrmodperm}
  811. permission message: &cIncorrect permissions!
  812. trigger:
  813. if arg 1 is not set:
  814. if arg 2 is not set:
  815. if arg 3 is not set:
  816. message "&4&lPUNISHMENT &8&l? &7Usage: /tempban <&cplayer&7> <&8reason&7> <&8time|form&7>"
  817. if arg 1 is set:
  818. if arg 2 is not set:
  819. if arg 3 is not set:
  820. message "&4&lPUNISHMENT &8&l? &7Usage: /tempban <&8%arg 1%&7> <&creason&7> <&8time|form&7>"
  821. if arg 1 is set:
  822. if arg 2 is set:
  823. if arg 3 is not set:
  824. message "&4&lPUNISHMENT &8&l? &7Usage: /tempban <&8%arg 1%&7> <&8%arg 2%&7> <&ctime|form&7>"
  825. if arg 1 is set:
  826. if arg 2 is set:
  827. if arg 3 is set:
  828. if executor is a player:
  829. if arg 1 has permission "{@punish-bypass}":
  830. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to mute member of staff!"
  831. else:
  832. if {banned.%arg 1%} is not set:
  833. set {banned.%arg 1%} to true
  834. set {tempban.%arg 1%} to arg 3
  835. set {tempban2.%arg 1%} to now
  836. set {tempban.reason.%arg 1%} to arg 2
  837. kick arg 1 due to "%newline%&7You are banned from this server!%newline%&7Reason: &c%{tempban.reason.%player%}%%newline%&7Expires: &c%arg 3%&7BanID: &c%uuid of player%%newline%%newline%&7Appeal at &bDanqEscape.forums.gg/forums%newline%"
  838. broadcast "&b%player% &7banned &3%arg 1% &7for &c%arg 2% &7[%arg 3%]"
  839. else:
  840. message "&4&lPUNISHMENT &8&l? &cThat player is already banned!"
  841. else:
  842. if arg 1 has permission "{@punish-bypass}":
  843. message "&4&lPUNISHMENT &8&l? &cYou are not allowed to mute member of staff!"
  844. else:
  845. if {banned.al.%arg 1%} is not set:
  846. set {tempban.%arg 1%} to arg 3
  847. set {tempban2.%arg 1%} to now
  848. set {tempban.reason.%arg 1%} to arg 2
  849. kick arg 1 due to "%newline%&7You are banned from this server!%newline%&7Reason: &c%{tempban.reason.%player%}%%newline%&7Expires: &c%arg 3%%newline%&7BanID: %uuid of player%%newline%%newline%&7Appeal at &bDanqEscape.forums.gg/forums%newline%"
  850. broadcast "&bConsole &7banned &3%arg 1% &7for &c%arg 2% &7[%arg 3%]"
  851. else:
  852. message "&4&lPUNISHMENT &8&l? &cThat player is already banned!" to console
  853. on quit:
  854. if {tempban.%player%} is set:
  855. set quit message to ""
  856. else:
  857. set quit message to " &c%player% Left."
  858.  
  859. on join:
  860. if {tempban.%player%} is set:
  861. if {tempban.reason.%player%} is set:
  862. set {_waited} to difference between {tempban2.%player%} and now
  863. if {_waited} is less than {tempban.%player%}:
  864. set join message to ""
  865. kick player due to "%newline%&7You are banned from this server!%newline%&7Reason: &c%{tempban.reason.%player%}%%newline%&7Expires: &c%difference between {tempban.%player%} and {_waited}%%newline%&7BanID: &c%uuid of player%%newline%%newline%&7Appeal at &bdanqlicker.forums.gg/forums%newline%"
  866. else:
  867. set join message to " &a%player% Joined."
  868. unban player
  869. unban ip of player
  870. delete {banned.%player%}
  871. delete {tempban.%player%}
  872. delete {tempban2.%player%}
  873. delete {tempban.reason.%player%}
  874.  
  875. # WARN
  876.  
  877. command /revertwarn [<offline player>]:
  878. permission: {@jrmodperm}
  879. permission message: &cIncorrect permissions!
  880. aliases: /unwarn
  881. trigger:
  882. if arg 1 is not set:
  883. message "&4&lPUNISHMENT &8&l? &7Usage: /revertwarn <&cplayer&7>"
  884. if arg 1 is set:
  885. if offlineplayer-arg is online:
  886. if {warns.%arg 1%} = 1:
  887. set {warns.%arg 1%} to 0
  888. broadcast "&b%player% &7has reverted &3%arg 1% &7warning(s)!"
  889. stop
  890. if {warns.%arg 1%} = 2:
  891. remove 1 from {warns.%arg 1%}
  892. broadcast "&b%player% &7has reverted &3%arg 1% &7warning(s)!"
  893. stop
  894. if {warns.%arg 1%} = 3:
  895. remove 1 from {warns.%arg 1%}
  896. broadcast "&b%player% &7has reverted &3%arg 1% &7warning(s)!"
  897. stop
  898. else:
  899. message "&4&lPUNISHMENT &8&l? &cThat player is offline!"
  900.  
  901. command /warn [<offline player>] [<text>]:
  902. permission: {@jrmodperm}
  903. permission message: &cIncorrect permissions!
  904. trigger:
  905. if arg 1 is not set:
  906. if arg 2 is not set:
  907. message "&4&lPUNISHMENT &8&l? &7Usage: /warn <&cplayer&7> <&8reason&7>"
  908. if arg 1 is set:
  909. if offlineplayer-arg is online:
  910. if arg 2 is not set:
  911. message "&4&lPUNISHMENT &8&l? &7Usage: /warn <&8%arg 1%&7> <&creason&7>"
  912. else:
  913. message "&4&lPUNISHMENT &8&l? &cThat player is offline!"
  914. if arg 1 is set:
  915. if offlineplayer-arg is online:
  916. if arg 2 is set:
  917. if executor is a player:
  918. add 1 to {warns.%arg 1%}
  919. broadcast "&b%player% &7warned &3%arg 1% &7for &c%arg 2% &7[%{warns.%arg 1%}%/3]"
  920. else:
  921. message "You must be a player to execute that command!"
  922.  
  923. else:
  924. message "&4&lPUNISHMENT &8&l? &cThat player is offline!"
  925.  
  926.  
  927. every 3 second:
  928. loop all players:
  929. if {warns.%loop-player%} is not set:
  930. set {warns.%loop-player%} to 0
  931. if {warns.%loop-player%} = 3:
  932. set {warns.%loop-player%} to 0
  933. execute console command "/tempban %loop-player% Warned Multiple Times 1 day"
  934.  
  935. # END OF THE PUNISHMENT CONFIGURATION! - I HOPE THIS WILL HELP YOU ALOT! <3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement