Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {%player's ip%'slist::*} does not contain player's name:
- add player's name to {%player's ip%'slist::*}
- set {_count} to 1
- loop {%player's ip%'slist::*}:
- add 1 to {_count}
- broadcast "&d%player%&bさんのIPアドレス:&a%ip of player%"
- if {_count} is 1:
- broadcast "&bほかにこのIPを利用してログインしたユーザーはいません。"
- stop
- broadcast "&bほかにこのIPを利用してログインしたユーザーは %{_count}% 人存在します。"
- set {_nowcount} to 0
- loop all players:
- if name of loop-player is not name of player:
- if ip of loop-player is ip of player:
- add 1 to {_nowcount}
- if {_nowcount} is 0:
- broadcast "&bほかにこのIPを利用してログインしているユーザーはいません。"
- stop
- broadcast "&bほかにこのIPを利用してログインしているユーザーは %{_count} - 1% 人存在します。"
- stop
- command /checkplayer [<player>]:
- trigger:
- if arg 1 is not set:
- send "&c/checkplayer <Player>"
- stop
- if {%arg 1's ip%'slist::*} does not contain arg 1's name:
- add arg 1's name to {%arg 1's ip%'slist::*}
- set {_count} to 1
- loop {%arg 1's ip%'slist::*}:
- add 1 to {_count}
- if {_count} is 1:
- send "&bほかにこのIPを利用してログインしたユーザーはいません。"
- stop
- send "&bほかにこのIPを利用してログインしたユーザーは %{_count} - 1% 人存在します。"
- set {_nowcount} to 0
- loop all players:
- if name of loop-player is not name of arg 1:
- if ip of loop-player is ip of arg 1:
- add 1 to {_nowcount}
- if {_nowcount} is 0:
- send "&bほかにこのIPを利用してログインしているユーザーはいません。"
- stop
- send "&bほかにこのIPを利用してログインしているユーザーは %{_count}% 人存在します。"
- stop
- command /iplist [<offline player>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&c/iplist <Player>"
- stop
- if arg 2 is "now":
- send "&b次のプレイヤーが同じIPを利用してログイン中です:"
- set {_nowcount} to 1
- loop all players:
- if ip of loop-player is ip of arg 1:
- add 1 to {_nowcount}
- send "&a%{_nowcount}%&r.&b%loop-player%"
- if {_nowcount} is not set:
- send "&e対象のプレイヤーはオフラインです。"
- stop
- send "&b上記の &d%{_nowcount}% &b人がIPアドレス「&a%ip of arg 1%&b」を利用中です。"
- stop
- send "&b次のプレイヤーが同じIPを利用してログインしています:"
- set {_count} to 1
- wait 1 tick
- loop {%arg 1's ip%'slist::*}:
- send "&a%loop-index%&r.&b%loop-value%"
- add 1 to {_count}
- send "&b上記の &d%{_count}% &b人がIPアドレス「&a%ip of arg 1%&b」を利用中です。"
Advertisement
Add Comment
Please, Sign In to add comment