Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on drop:
- if player is not an op:
- cancel event
- command /maintenance <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 "&eメンテナンス開始!"
- broadcast "&b&lOPの人のみ参加できます。"
- set {metmode} to true
- if arg 1 is false:
- broadcast "&aメンテナンスを終了しました。"
- set {metmode} to false
- On Connect:
- if player is not an op:
- if {metmode} is true:
- kick the player due to "メンテナンス中の為、入れません。"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement