Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- logo: &e[&f接続制限System&e]
- command /setuzoku [<text>] [<text>]:
- permission: sk.admin
- trigger:
- if arg-1 is "set" or "true" or "false" or "reset":
- if arg-1 is "true":
- set {setuzoku} to "true"
- send "{@logo} 接続制限をonにしました。"
- if arg-1 is "false":
- set {setuzoku} to "false"
- send "{@logo} 接続制限をoffにしました。"
- if arg-1 is "set":
- if arg-2 is set:
- set {setuzokusuu} to arg-2
- send "{@logo} 接続制限数を%arg-2%に設定しました。"
- if arg-1 is "reset":
- set {se} to 0
- send "{@logo} リセットしました。"
- on connect:
- if {setuzoku} is "true":
- if {se} is greater than {setuzokusuu}:
- kick the player due to "接続制限を超えた為、接続できません。"
- broadcast "{@logo} &e%player%が、接続拒否されました。"
- else:
- add 1 to {se}
- on disconnect:
- if {setuzoku} is "false":
- remove 1 from {se}
Advertisement
Add Comment
Please, Sign In to add comment