ArtzifyHD

Warning System

Jul 14th, 2017
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. options:
  2. WS.AdminPerm: WS.admin
  3. WS.UnwarnablePerm: WS.unwarnable
  4.  
  5. WS.AmtPermBan: 9
  6. WS.AmtTempBan: 3
  7.  
  8. #%nl%: new line
  9. #%{WS.WarnAmt.%{_WS.Target}%}%: ban amount of the player
  10. #%{WS.ExpireTime.%{_WS.Target}%}%: The day of ban expire
  11.  
  12. WS.TempBanMsg: "&c[&6Warning System&c]%nl%%nl%&cYou got &6%{WS.WarnAmt.%{_WS.Target}%}% warning&c.%nl%&cYou are now &e&ltemporary banned &cfor &e&l7 &cdays.%nl%&cAny objections, please contact admin at &9facebook page &cor &9group.%nl%%nl%&eExpire time: %{WS.ExpireTime.%{_WS.Target}%}%"
  13.  
  14. WS.PermBanMsg: "&c[&6Warning System&c]%nl%%nl%&cYou got &6%{WS.WarnAmt.%{_WS.Target}%}% warning&c.%nl%&cYyou are now &e&lperment banned&c.%nl%&cAny objections, please contact admin at &9facebook page &cor &9group&c.%nl%%nl%&eExpire time: &e&lNever!"
  15.  
  16. WS.Prefix: &c[&6Warning System&c]
  17. WS.SpecifyPlayer: &cPlease specify a player.
  18.  
  19. #────────────────────────────────────────────────#
  20. #────────────────────────────────────────────────#
  21. #Do not touch the following part unless you know what you are doing#
  22. #────────────────────────────────────────────────#
  23. #────────────────────────────────────────────────#
  24.  
  25. command /warn <text="help"> [<text>] [<text>]:
  26. permission: {@WS.AdminPerm}
  27. permission message: &cYou don't have permission to perform this command.
  28. usage: &aType &e/warn help &afor more help.
  29. aliases: /wrn, /wn, /ws
  30. trigger:
  31. if arg-1 is "help" or "h" or "hlp" or "hp":
  32. message "&a────────────Warning System───────────────"
  33. message "&eAuthor: i998979"
  34. message ""
  35. message "&aCommand:"
  36. message "&a<>: Necessary []: Optional"
  37. message "&c/Warn add | a | + | plus <player> [reason] &e: Give warning to a player"
  38. message "&c/Warn remove | r | del | delete | take | t <player> [reason] &e: remove a warning from player"
  39. message "&c/Warn reset | rs | clean | cl | clear | c <player> [reason] &e: reset a player's warning"
  40. message "&c/Warn show | s | display | dis | d | print | p | pt <player> &e: show how many warnings player have"
  41. message "&c/Warn help | h | hlp | hp &e: show this help message"
  42. message ""
  43. message "&aPermission:"
  44. message "&6Command Permission:"
  45. message "&e{@WS.AdminPerm}"
  46. message "&6Unwarnable Permission:"
  47. message "&e{@WS.UnwarnablePerm}"
  48. message "&a───────────────────────────────────"
  49. if arg-1 is "add" or "a" or "+" or "plus":
  50. if arg-2 is set:
  51. if (arg-2 parsed as player) has permission "{@WS.UnwarnablePerm}":
  52. broadcast "&a───────────────────────────────────"
  53. broadcast "{@WS.Prefix} &6%executor% &ctry to warn &6%arg-2% &cbut failed."
  54. broadcast "{@WS.Prefix} &cBecause &6%arg-2% &chas unwarnable permission!"
Advertisement
Add Comment
Please, Sign In to add comment