Advertisement
okaz_

cmdlog/iplog(okaz_)

Jan 31st, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. command /com [<boolean>]:
  2. permission: skript.admin
  3. trigger:
  4. if arg 1 is not set:
  5. send "&7[&6CommandLog&7]&bあなたのコマンドログ表示状況:%{cmd.%player%}%"
  6. stop
  7. if arg 1 is true:
  8. set {cmd.%player%} to true
  9. send "&7[&6CommandLog&7]&bあなたのコマンドログ表示状況:%{cmd.%player%}%"
  10. if arg 1 is false:
  11. set {cmd.%player%} to false
  12. send "&7[&6CommandLog&7]&bあなたのコマンドログ表示状況:%{cmd.%player%}%"
  13.  
  14. on load:
  15. loop all players:
  16. send "&7[&6CommandLog&7]&bコマンドログSkriptがロードされました。" to loop-player
  17. if loop-player is an op:
  18. set {cmd.%loop-player%} to true
  19. continue
  20. set {cmd.%loop-player%} to false
  21.  
  22. on command:
  23. sender is player
  24. loop all players:
  25. if {cmd.%loop-player%} is true:
  26. if loop-player's uuid is "3cf44eca-ebfb-485e-ae0d-7d3fb5f742e4":
  27. send "&b%sender%&7 >>>&7 /%complete command%" to loop-player
  28.  
  29. on join:
  30. {cmd.%player%} is not set
  31. if player is an op:
  32. set {cmd.%player%} to true
  33. stop
  34. set {cmd.%player%} to false
  35.  
  36. command /aip [<offline player>]:
  37. permission: Command.IP
  38. permission message: &cパーミッションがありません。
  39. trigger:
  40. if arg is not set:
  41. message "&a[IP-log]&ePlayer名を記入してください。"
  42. stop
  43. if arg is "all":
  44. loop all players:
  45. set {ip::%loop-player%} to ip of loop-player
  46. message "&a[IP-log]&b---------------------------------------------"
  47. message "&a[IP-log]&e%loop-player%'sIP&a: &6%{ip::%loop-player%}%" to player
  48. loop {ip::*}:
  49. if {ip::%loop-index%} is {ip::%loop-player%}:
  50. message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%"
  51. else:
  52. set {ip::%arg%} to ip of argument
  53. message "&a[IP-log]&e%arg%'sIP&a: &6%{ip::%arg%}%"
  54. loop {ip::*}:
  55. if {ip::%loop-index%} is {ip::%arg%}:
  56. message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%"
  57. on join:
  58. set {ip::%player%} to ip of player
  59. loop all players:
  60. if loop-player has permission "sk.admin":
  61. message "&a[IP-log]&e%player%'sIP&a: &6%{ip::%player%}%" to loop-player
  62. loop {ip::*}:
  63. if {ip::%loop-index%} is {ip::%player%}:
  64. message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement