Advertisement
imguir

Untitled

Sep 18th, 2015
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /manutencao [<text>] [<offlineplayer>]:
  2. permission: manu.use
  3. permission message: &4Você não tem permissão para isso!
  4. trigger:
  5. if arg 1 is "on":
  6. broadcast "&d[SERVER] O servidor vai entrar em manutenção!"
  7. wait 1 second
  8. broadcast "&d[SERVER] 3..."
  9. wait 1 second
  10. broadcast "&d[SERVER] 2..."
  11. wait 1 second
  12. broadcast "&d[SERVER] 1..."
  13. wait 1 second
  14. execute console command "whitelist on"
  15. send "&7* &cModo manutenção ativado!"
  16. loop all players:
  17. if loop-player isn't player:
  18. kick loop-player due to "Desculpe o transtorno! Já voltamos."
  19. if arg 1 is "off":
  20. execute console command "whitelist off"
  21. send "&7* &cModo manutenção desativado!"
  22. if arg 1 is "add":
  23. if arg 2 is player:
  24. execute console command "whitelist add %arg 2%"
  25. send "&aVocê adicionou %arg 2% a whitelist."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement