Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /warn <player> [<text>]:
- permission: server.warn
- permission message: &cYou cannot do this command!
- trigger:
- if arg-1 is player"
- send "&cYou cannot warn yourself!"
- stop
- if arg-1 is not set:
- send "&c/warn (Player) (Reset/Remove/Reason/Check)"
- stop
- if arg-2 is not set:
- send "&c/warn %arg-1% (Reset/Remove/Reason/Check)"
- stop
- if arg-1 is set:
- if arg-2 is set:
- if arg-2 is "reset":
- set {warn.%arg-1%} to 0
- broadcast "&7&m------------------------------------------"
- broadcast "&e%player% &chas reset &e%arg-1%&e's &cwarns"
- broadcast "&7&m------------------------------------------"
- stop
- if arg-2 is "remove":
- if {warn.%player%} is more than 1:
- remove 1 from {warn.%arg-1%}
- broadcast "&7&m------------------------------------------"
- broadcast "&e%player% &chas removed 1 warn from &e%arg-1%&e's &cwarns"
- broadcast "&7&m------------------------------------------"
- stop
- if arg-2 is "check":
- else:
- add 1 to {warn.%arg-1%}
- broadcast "&7&m------------------------------------------"
- broadcast "&e%player% &chas warned &e%arg-1%&e&c!"
- broadcast " &eReason: &c%arg-2%"
- broadcast "&7&m------------------------------------------"
- stop
- every 1 tick:
- if {warn.%player%} is 3:
- make console execute "/essentials:tempban %player% 2h [Warn] To many warns!"
- remove 1 to {warn.%player%}
Add Comment
Please, Sign In to add comment