Advertisement
K2Rk1o

コマンドログ & IPCHECK

Nov 30th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. #CONFIG:
  2.  
  3. options:
  4. cmd: &7&l[&e&lCommand&7&l] &a&l≫≫
  5.  
  6. on command:
  7. loop all players:
  8. if loop-player has permission "sk.admin":
  9. if {logs.%loop-player%} is not set:
  10. set {logs.%loop-player%} to true
  11. if {logs.%loop-player%} is true:
  12. if player is not set:
  13. stop
  14. message " {@cmd} &7%player%: /%full command%" to loop-player
  15. command /cmd [<text>]:
  16. permission: skript.admin
  17. trigger:
  18. if arg-1 is set:
  19. if arg-1 is "on":
  20. set {logs.%player%} to true
  21. message " {@cmd} &7Log表示を&aon&7にしました。"
  22. stop
  23. if arg-1 is "off":
  24. set {logs.%player%} to false
  25. message " {@cmd} &7Log表示を&coff&7にしました。"
  26. stop
  27. else:
  28. message "{@cmd} &7cmd <on,off>"
  29.  
  30. command /aip [<offline player>]:
  31. permission: Command.IP
  32. permission message: &cパーミッションがありません。
  33. trigger:
  34. if arg is not set:
  35. message "&7&l[&e&lIP-log&7&l]&a&lPlayer名を記入してください。"
  36. stop
  37. if arg is "all":
  38. loop all players:
  39. set {ip::%loop-player%} to ip of loop-player
  40. message "&7&l[&e&lIP-log&7&l]&b---------------------------------------------"
  41. message "&7&l[&e&lIP-log&7&l]&a&l%loop-player%'sIP&a: &6%{ip::%loop-player%}%" to player
  42. loop {ip::*}:
  43. if {ip::%loop-index%} is {ip::%loop-player%}:
  44. message "&7&l[&e&lIP-log&7&l]&a&l同じIPを使用しているPlayer&a: &6%loop-index%"
  45. else:
  46. set {ip::%arg%} to ip of argument
  47. message "&7&l[&e&lIP-log&7&l]&a%arg%'sIP&a: &6%{ip::%arg%}%"
  48. loop {ip::*}:
  49. if {ip::%loop-index%} is {ip::%arg%}:
  50. message "&7&l[&e&lIP-log&7&l]&a&l同じIPを使用しているPlayer&a: &6%loop-index%"
  51. on join:
  52. set {ip::%player%} to ip of player
  53. loop all players:
  54. if loop-player has permission "sk.admin":
  55. if {logs.%loop-player%} is true:
  56. message "&a[IP-log]&e%player%'sIP&a: &6%{ip::%player%}%" to loop-player
  57. loop {ip::*}:
  58. if {ip::%loop-index%} is {ip::%player%}:
  59. 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