Advertisement
K2Rk1o

Untitled

Nov 17th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. #IP CHECK
  2. #
  3. #VERSION 0.7
  4. #
  5. #
  6. #
  7. #
  8.  
  9.  
  10.  
  11. command /aip [<offline player>]:
  12. permission: Command.IP
  13. permission message: &cパーミッションがありません。
  14. trigger:
  15. if arg is not set:
  16. message "&7&l[&e&lIP-log&7&l]&a&lPlayer名を記入してください。"
  17. stop
  18. if arg is "all":
  19. loop all players:
  20. set {ip::%loop-player%} to ip of loop-player
  21. message "&7&l[&e&lIP-log&7&l]&b---------------------------------------------"
  22. message "&7&l[&e&lIP-log&7&l]&a&l%loop-player%'sIP&a: &6%{ip::%loop-player%}%" to player
  23. loop {ip::*}:
  24. if {ip::%loop-index%} is {ip::%loop-player%}:
  25. message "&7&l[&e&lIP-log&7&l]&a&l同じIPを使用しているPlayer&a: &6%loop-index%"
  26. else:
  27. set {ip::%arg%} to ip of argument
  28. message "&7&l[&e&lIP-log&7&l]&a%arg%'sIP&a: &6%{ip::%arg%}%"
  29. loop {ip::*}:
  30. if {ip::%loop-index%} is {ip::%arg%}:
  31. message "&7&l[&e&lIP-log&7&l]&a&l同じIPを使用しているPlayer&a: &6%loop-index%"
  32. on join:
  33. set {ip::%player%} to ip of player
  34. loop all players:
  35. if loop-player has permission "sk.admin":
  36. if {logs.%loop-player%} is true:
  37. message "&a[IP-log]&e%player%'sIP&a: &6%{ip::%player%}%" to loop-player
  38. loop {ip::*}:
  39. if {ip::%loop-index%} is {ip::%player%}:
  40. message "&7&l[&e&lIP-log&7&l]&a&l同じIPを使用しているPlayer&a: &6%loop-index%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement