Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /mt <boolean>:
- permission: admin.close
- trigger:
- if arg 1 is true:
- loop all players:
- loop-player is not an op
- kick the loop-player due to "サーバーのメンテナンスが始めったためOP以外サーバーに入ることはできません。"
- broadcast "&amaintenance mode started."
- broadcast "&bOP以外の人はサーバーに入れなくなりました。"
- set {metmode} to true
- if arg 1 is false:
- broadcast "&amaintenance mode finished."
- set {metmode} to false
- On Connect:
- if player is not an op:
- if {metmode} is true:
- kick the player due to "メンテナンスをしているためOP以外入れません。"
- on script stop:
- set {metmode} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement