Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #+------------------------------------------------------+
  2. #| PlayerCommandLog |
  3. #+------------------------------------------------------+
  4. #
  5.  
  6.  
  7. options:
  8. prefix: &7[&acmd&7]&a
  9. on command:
  10. loop all players:
  11. if loop-player has permission "sk.admin":
  12. if {log.%loop-player%} is not set:
  13. set {log.%loop-player%} to true
  14. if {log.%loop-player%} is true:
  15. if player is not set:
  16. stop
  17. message " {@prefix} &7%player%: /%full command%" to loop-player
  18. command /cmd [<text>]:
  19. permission: sk.cmd
  20. trigger:
  21. if arg-1 is set:
  22. if arg-1 is "on":
  23. set {log.%player%} to true
  24. message " {@prefix}&7Log表示を&aon&7にしました。"
  25. stop
  26. if arg-1 is "off":
  27. set {log.%player%} to false
  28. message " {@prefix}&7Log表示を&coff&7にしました。"
  29. stop
  30. else:
  31. message "{@prefix}&7/cmd <on,off>"
  32. #Ip-Checker#
  33. #指定したプレイヤーのipをチェックします。同一のIPがあった場合、そのプレイヤーのIDも表示されます。#
  34. command /aip [<offline player>]:
  35. permission: Command.IP
  36. permission message: &cパーミッションがありません。
  37. trigger:
  38. if arg is not set:
  39. message "&a[IP-log]&ePlayer名を記入してください。"
  40. stop
  41. if arg is "all":
  42. loop all players:
  43. set {ip::%loop-player%} to ip of loop-player
  44. message "&a[IP-log]&b---------------------------------------------"
  45. message "&a[IP-log]&e%loop-player%'sIP&a: &6%{ip::%loop-player%}%" to player
  46. loop {ip::*}:
  47. if {ip::%loop-index%} is {ip::%loop-player%}:
  48. message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%"
  49. else:
  50. set {ip::%arg%} to ip of argument
  51. message "&a[IP-log]&e%arg%'sIP&a: &6%{ip::%arg%}%"
  52. loop {ip::*}:
  53. if {ip::%loop-index%} is {ip::%arg%}:
  54. message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%"
  55. on join:
  56. set {ip::%player%} to ip of player
  57. loop all players:
  58. if loop-player has permission "sk.admin":
  59. message "&a[IP-log]&e%player%'sIP&a: &6%{ip::%player%}%" to loop-player
  60. loop {ip::*}:
  61. if {ip::%loop-index%} is {ip::%player%}:
  62. message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%" to loop-player
  63. command /aipreset [<offline player>]:
  64. permission: command.ip.reset
  65. trigger:
  66. send "&c%arg%さんのIP&a: &e%{ip::%arg%}% &cをリセットしました"
  67. clear {ip::%arg%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement