Advertisement
Guest User

warrnings

a guest
Sep 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. options:
  2. chat: &c&lRubic &e&l» &7
  3.  
  4. variables:
  5. {warn::%player%} = 0
  6.  
  7. command /warn [<player>] [<text>]:
  8. trigger:
  9. if player has permission "warn.use":
  10. if arg-1 and arg-2 are set:
  11. send "{@chat}You Have Been Warrned For The Reason &3%arg-2%" to arg-1
  12. loop all players:
  13. if loop-player is not arg-1
  14. send "{@chat} &c%arg-1% &7Was Warrned For The Reason: &3%arg-2%" to loop-players
  15. add 1 to {warn::%arg-1%}
  16. if {warn::%arg-1%} < 4:
  17. stop
  18. if {warn::%arg-1%} = 4:
  19. kick arg-1 due to "You Have Been Warned 3 Times
  20. broadcast "{@chat}&c5arg-1% &7was Kicked For Reaching 3 Warrnings"
  21. set {warn::%arg-1%} to 0
  22. stop
  23. if arg-1 is not set:
  24. send "{@chat}&cCorrect Usage: &3/warn (player) (reason)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement