Advertisement
LukaMC59

Untitled

Nov 19th, 2017
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. command /warn [<player>]:
  2. permission: essentials.warn
  3. permission message: &8»&7 You haven't got permission &cessentials.warn&7 to execute this command
  4. trigger:
  5. if arg-1 is set:
  6. if arg-player is not set:
  7. message "&8» &7/warn [<player>]"
  8. if arg-player is set:
  9. add 1 to {warns.%arg-player%}
  10. message "&8» &c%arg-player%&7 has been warned. It currently has &8[&c%{warns.%arg-player%}%&8]&7 warns"
  11. send "&8» &7You've been warned. You have &8[&c%{warns.%arg-player%}%&8] &7warns" to arg-player
  12.  
  13. command /warns <offlineplayer>:
  14. usage: /warns (player)
  15. trigger:
  16. add 0 to {warns.%arg-1%}
  17. message "&8» &c%arg-1%&7 has &8[&c%{warns.%arg-1%}%&8]&7 warns"
  18.  
  19. command /unwarn [<player>]:
  20. permission: essentials.warn
  21. permission message: &8»&7 You haven't got permission &cessentials.warn&7 to execute this command
  22. trigger:
  23. if arg-1 is set:
  24. if arg-player is not set:
  25. message "&8» &7/unwarn [<player>]"
  26. if arg-player is set:
  27. if {warns.%arg-player%} is greater than 0:
  28. remove 1 from {warns.%arg-player%}
  29. message "&8» &c%arg-player%&7 has been unwarned. It currently has &8[&c%{warns.%arg-player%}%&8]&7 warns"
  30. send "&8» &7You've been unwarned. You have &8[&c%{warns.%arg-player%}%&8] &7warns"
  31. else:
  32. message "&8» &7Player cannot be unwarned"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement