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