Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {Alerta.%player%} to true
- set {Alerta.%player%} to 0
- command /alerta [<offlineplayer>] [<integer>]:
- trigger:
- if player has permission "Alerta.Use":
- if arg 1 is set:
- if arg 2 is set:
- if {Alerta.%arg 1%} = 10:
- set {Alerta.%arg 1%} to 0
- broadcast " "
- broadcast "&c&lA&f&llertas &c&l> &7O player %arg 1% foi alertado pelo staff %player%"
- broadcast " "
- ban %arg 1% Você alcansou o limite de 10 alertas !"
- wait 1 hours
- unban %arg 1%
- send "&c&lA&f&llertas &c&l> &eAlerta aplicado !"
- stop
- else:
- send "&c&lA&f&llertas &c&l> &eAlerta aplicado !"
- send "&c&lA&f&llertas &c&l> &7O player %arg 1% está com %{Alerta.%arg 1%}% alertas"
- send "&c&lA&f&llertas &c&l> &7Você está com %{Alerta.%arg 1%}% de alertas" to arg 1
- broadcast " "
- broadcast "&c&lA&f&llertas &c&l> &7O player %arg 1% foi alertado pelo staff %player%"
- broadcast " "
- add %arg 2% to {Alerta.%arg 1%}
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement