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