kjfalkeiae

Untitled

Jan 19th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. on join:
  2. if {%player's ip%'slist::*} does not contain player's name:
  3. add player's name to {%player's ip%'slist::*}
  4. set {_count} to 1
  5. loop {%player's ip%'slist::*}:
  6. add 1 to {_count}
  7. broadcast "&d%player%&bさんのIPアドレス:&a%ip of player%"
  8. if {_count} is 1:
  9. broadcast "&bほかにこのIPを利用してログインしたユーザーはいません。"
  10. stop
  11. broadcast "&bほかにこのIPを利用してログインしたユーザーは %{_count}% 人存在します。"
  12. set {_nowcount} to 0
  13. loop all players:
  14. if name of loop-player is not name of player:
  15. if ip of loop-player is ip of player:
  16. add 1 to {_nowcount}
  17. if {_nowcount} is 0:
  18. broadcast "&bほかにこのIPを利用してログインしているユーザーはいません。"
  19. stop
  20. broadcast "&bほかにこのIPを利用してログインしているユーザーは %{_count} - 1% 人存在します。"
  21. stop
  22.  
  23. command /checkplayer [<player>]:
  24. trigger:
  25. if arg 1 is not set:
  26. send "&c/checkplayer <Player>"
  27. stop
  28. if {%arg 1's ip%'slist::*} does not contain arg 1's name:
  29. add arg 1's name to {%arg 1's ip%'slist::*}
  30. set {_count} to 1
  31. loop {%arg 1's ip%'slist::*}:
  32. add 1 to {_count}
  33. if {_count} is 1:
  34. send "&bほかにこのIPを利用してログインしたユーザーはいません。"
  35. stop
  36. send "&bほかにこのIPを利用してログインしたユーザーは %{_count} - 1% 人存在します。"
  37. set {_nowcount} to 0
  38. loop all players:
  39. if name of loop-player is not name of arg 1:
  40. if ip of loop-player is ip of arg 1:
  41. add 1 to {_nowcount}
  42. if {_nowcount} is 0:
  43. send "&bほかにこのIPを利用してログインしているユーザーはいません。"
  44. stop
  45. send "&bほかにこのIPを利用してログインしているユーザーは %{_count}% 人存在します。"
  46. stop
  47.  
  48. command /iplist [<offline player>] [<text>]:
  49. trigger:
  50. if arg 1 is not set:
  51. send "&c/iplist <Player>"
  52. stop
  53. if arg 2 is "now":
  54. send "&b次のプレイヤーが同じIPを利用してログイン中です:"
  55. set {_nowcount} to 1
  56. loop all players:
  57. if ip of loop-player is ip of arg 1:
  58. add 1 to {_nowcount}
  59. send "&a%{_nowcount}%&r.&b%loop-player%"
  60. if {_nowcount} is not set:
  61. send "&e対象のプレイヤーはオフラインです。"
  62. stop
  63. send "&b上記の &d%{_nowcount}% &b人がIPアドレス「&a%ip of arg 1%&b」を利用中です。"
  64. stop
  65. send "&b次のプレイヤーが同じIPを利用してログインしています:"
  66. set {_count} to 1
  67. wait 1 tick
  68. loop {%arg 1's ip%'slist::*}:
  69. send "&a%loop-index%&r.&b%loop-value%"
  70. add 1 to {_count}
  71. send "&b上記の &d%{_count}% &b人がIPアドレス「&a%ip of arg 1%&b」を利用中です。"
Advertisement
Add Comment
Please, Sign In to add comment