Advertisement
maozou

メンテンナンス

Oct 13th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. on drop:
  2. if player is not an op:
  3. cancel event
  4. command /maintenance <boolean>:
  5. permission: admin.close
  6. trigger:
  7. if arg 1 is true:
  8. loop all players:
  9. loop-player is not an op
  10. kick the loop-player due to "メンテナンスのため、OP以外参加することができません。"
  11. broadcast "&eメンテナンス開始!"
  12. broadcast "&b&lOPの人のみ参加できます。"
  13. set {metmode} to true
  14. if arg 1 is false:
  15. broadcast "&aメンテナンスを終了しました。"
  16. set {metmode} to false
  17. On Connect:
  18. if player is not an op:
  19. if {metmode} is true:
  20. kick the player due to "メンテナンス中の為、入れません。"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement