Advertisement
fleft17

Untitled

Jul 4th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. command /warn <text> <player>
  2. permission: skript.ethereal.warn
  3. trigger:
  4. if arg-1 is "add":
  5. add 1 to {warns.%arg-2%}
  6. if {warns.%arg-2%} is equal to 1:
  7. message "&8[Ethereal] &aYou've been given &b1 &awarning!" to arg-2
  8. if {warns.%name of arg 1%} is equal to 2:
  9. message "&8[Ethereal] &aYou've now have &b2 &awarnings! Get another one and you are banned!" to arg-2
  10. if {warns.%name of arg 1%} is equal to 3:
  11. message "&8[Ethereal] &aYou've now have &b3 &awarnings! You are now banned!" to arg-2
  12. wait 5 seconds
  13. execute console command "/ban %arg-2%"
  14. execute console command "/whitelist remove %arg-2%"
  15.  
  16. if arg-1 is "remove" or "reset" or "pardon":
  17. set {warns.%arg-2%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement