Advertisement
maozou

maintenance

Nov 20th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. command /mt <boolean>:
  2. permission: admin.close
  3. trigger:
  4. if arg 1 is true:
  5. loop all players:
  6. loop-player is not an op
  7. kick the loop-player due to "サーバーのメンテナンスが始めったためOP以外サーバーに入ることはできません。"
  8. broadcast "&amaintenance mode started."
  9. broadcast "&bOP以外の人はサーバーに入れなくなりました。"
  10. set {metmode} to true
  11. if arg 1 is false:
  12. broadcast "&amaintenance mode finished."
  13. set {metmode} to false
  14. On Connect:
  15. if player is not an op:
  16. if {metmode} is true:
  17. kick the player due to "メンテナンスをしているためOP以外入れません。"
  18. on script stop:
  19. set {metmode} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement