Advertisement
nyaago50000

Untitled

Apr 30th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. #CmdLog#
  2. #CmdLog-他人、自分のコマンド実行ログがOP所持者にチャットで表示されます。#
  3. #コマンドブロックからの実行は表示されません。#
  4. options:
  5. prefix: &5[CMD]#CommandLOGのPrefixの変更#default: &8[CMD]#
  6. on command:
  7. loop all players:
  8. if loop-player has permission "sk.admin":
  9. if {log.%loop-player%} is not set:
  10. set {log.%loop-player%} to true
  11. if {log.%loop-player%} is true:
  12. if player is not set:
  13. stop
  14. message " {@prefix} &7%player%: /%full command%" to loop-player
  15. command /cmd [<text>]:#Logの表示のON/OFFの切り替え#
  16. permission: sk.cmd
  17. trigger:
  18. if arg-1 is set:
  19. if arg-1 is "on":
  20. set {log.%player%} to true
  21. message " {@prefix}&7Log表示を&aon&7にしました。"
  22. stop
  23. if arg-1 is "off":
  24. set {log.%player%} to false
  25. message " {@prefix}&7Log表示を&coff&7にしました。"
  26. stop
  27. else:
  28. message "{@prefix}&7/cmd <on,off>"
  29. #Ip-Checker#
  30. #指定したプレイヤーのipをチェックします。同一のIPがあった場合、そのプレイヤーのIDも表示されます。#
  31. command /aip [<offline player>]:
  32. permission: Command.IP
  33. permission message: &cYou do not have permission
  34. trigger:
  35. if arg is not set:
  36. message "&a[IP-log]&ePlayer名を記入してください。"
  37. stop
  38. if arg is "all":
  39. loop all players:
  40. set {ip::%loop-player%} to ip of loop-player
  41. message "&a[IP-log]&b---------------------------------------------"
  42. message "&a[IP-log]&e%loop-player%'sIP&a: &6%{ip::%loop-player%}%" to player
  43. loop {ip::*}:
  44. if {ip::%loop-index%} is {ip::%loop-player%}:
  45. message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%"
  46. else:
  47. set {ip::%arg%} to ip of argument
  48. message "&a[IP-log]&e%arg%'sIP&a: &6%{ip::%arg%}%"
  49. loop {ip::*}:
  50. if {ip::%loop-index%} is {ip::%arg%}:
  51. message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%"
  52. on join:
  53. set {ip::%player%} to ip of player
  54. loop all players:
  55. if loop-player has permission "sk.admin":
  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 "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement