Advertisement
Cool_Colton

Untitled

May 2nd, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. ######################################################################################################################################## Skript Made By #
  2. # Colton #
  3. # ztimhirsch #
  4. #######################################################################################################################################
  5. command /warn [<player>] <text>:
  6. permission: staff.warn
  7. permission message: &4You don't have the permission &c&lstaff.warn.mute&4.
  8. trigger:
  9. if arg-2 is not set:
  10. message "&4Usage: /warn <player> <reason>"
  11. stop
  12. if arg-2 is set:
  13. add 1 to {warnmute.%arg-1%}
  14. broadcast "&b%arg-1% &7was warned by &a%player% &7for &c%arg-2% %arg-3% &2[&6%{warnmute.%arg-1%}%/3&2]"
  15. if {warnmute2.%arg-1%} is not set:
  16. set {warnmute.%arg-1%} to 0
  17. set {warnmute2.%arg-1%} to 0
  18. if {warnmute.%arg-1%} is 3:
  19. set {warnmute.%arg-1%} to 0
  20. set {warnmute2.%arg-1%} to 0
  21. execute console command "/mute %arg-1% 30m"
  22. command /checkwarns [<player>]:
  23. trigger:
  24. message "&b%arg-1% &7has &6%{warns2.%arg-1%}%&7 warnings."
  25. command /warnreset [<player>] [<text>]:
  26. permission: staff.warnreset
  27. permission message: &4You don't have the permission &c&lstaff.warnreset&4.
  28. trigger:
  29. if arg-2 is not set:
  30. message "&cUsage: /warnreset <player> <reason>"
  31. stop
  32. else:
  33. set {warns.%arg-1%} to 0
  34. set {warns2.%arg-1%} to 0
  35. broadcast "&b%arg-1% &7has had their warns reset by &a%player% &7for &c%arg-2%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement