maozou

メンテナンスシステム(whitelistとしても使えます)

Jan 24th, 2019
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. options:
  2. logo: &e[&fmaintenance&e]
  3. command /mt <text>:
  4. permission: sk.admin
  5. trigger:
  6. if arg-1 is "true" or "false" or "help" or "setting":
  7. if arg-1 is "help":
  8. send "&a------====メンテシステムHelp===------"
  9. send "&atrue: &eメンテモードをonにします。"
  10. send "&afalse: &eメンテモードをoffにします。"
  11. send "&ahelp: &eこの画面を表示します。"
  12. if arg-1 is "true":
  13. set {mente.mente} to "true"
  14. send "{@logo} &bメンテモードをオンにしました。"
  15. if arg-1 is "false":
  16. set {mente.mente} to "false"
  17. send "{@logo} &bメンテモードをオフにしました。"
  18. on connect:
  19. if {mente.mente} is "true":
  20. if player is not op:
  21. broadcast "{@logo} &a%player%さんが接続しようとしました。"
  22. kick the player due to "%{loggin}%"
  23. command /mtsetting <text> <text>:
  24. permission: sk.admin
  25. trigger:
  26. if arg-1 is "set" or "reset":
  27. if arg-1 is "set":
  28. set {loggin} to "%arg-2%"
  29. send "{@logo} kickメッセージを%arg-2%に変更しました。"
  30. if arg-1 is "reset":
  31. set {loggin} to ""
  32. send "{@logo} kickメッセージをリセットしました"
Advertisement
Add Comment
Please, Sign In to add comment