Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /manutencao [<text>] [<offlineplayer>]:
- permission: manu.use
- permission message: &4Você não tem permissão para isso!
- trigger:
- if arg 1 is "on":
- broadcast "&d[SERVER] O servidor vai entrar em manutenção!"
- wait 1 second
- broadcast "&d[SERVER] 3..."
- wait 1 second
- broadcast "&d[SERVER] 2..."
- wait 1 second
- broadcast "&d[SERVER] 1..."
- wait 1 second
- execute console command "whitelist on"
- send "&7* &cModo manutenção ativado!"
- loop all players:
- if loop-player isn't player:
- kick loop-player due to "Desculpe o transtorno! Já voltamos."
- if arg 1 is "off":
- execute console command "whitelist off"
- send "&7* &cModo manutenção desativado!"
- if arg 1 is "add":
- if arg 2 is player:
- execute console command "whitelist add %arg 2%"
- send "&aVocê adicionou %arg 2% a whitelist."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement