Advertisement
yozora_1202

cmdlog

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