maozou

Untitled

Feb 23rd, 2019
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. options:
  2. logo: &e[&f接続制限System&e]
  3. command /setuzoku [<text>] [<text>]:
  4. permission: sk.admin
  5. trigger:
  6. if arg-1 is "set" or "true" or "false" or "reset":
  7. if arg-1 is "true":
  8. set {setuzoku} to "true"
  9. send "{@logo} 接続制限をonにしました。"
  10. if arg-1 is "false":
  11. set {setuzoku} to "false"
  12. send "{@logo} 接続制限をoffにしました。"
  13. if arg-1 is "set":
  14. if arg-2 is set:
  15. set {setuzokusuu} to arg-2
  16. send "{@logo} 接続制限数を%arg-2%に設定しました。"
  17. if arg-1 is "reset":
  18. set {se} to 0
  19. send "{@logo} リセットしました。"
  20. on connect:
  21. if {setuzoku} is "true":
  22. if {se} is greater than {setuzokusuu}:
  23. kick the player due to "接続制限を超えた為、接続できません。"
  24. broadcast "{@logo} &e%player%が、接続拒否されました。"
  25. else:
  26. add 1 to {se}
  27. on disconnect:
  28. if {setuzoku} is "false":
  29. remove 1 from {se}
Advertisement
Add Comment
Please, Sign In to add comment