Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #CmdLog#
- #CmdLog-他人、自分のコマンド実行ログがOP所持者にチャットで表示されます。#
- #コマンドブロックからの実行は表示されません。#
- options:
- prefix: &5[CMD]#CommandLOGのPrefixの変更#default: &8[CMD]#
- on command:
- loop all players:
- if loop-player has permission "sk.admin":
- if {log.%loop-player%} is not set:
- set {log.%loop-player%} to true
- if {log.%loop-player%} is true:
- if player is not set:
- stop
- message " {@prefix} &7%player%: /%full command%" to loop-player
- command /cmd [<text>]:#Logの表示のON/OFFの切り替え#
- permission: sk.cmd
- trigger:
- if arg-1 is set:
- if arg-1 is "on":
- set {log.%player%} to true
- message " {@prefix}&7Log表示を&aon&7にしました。"
- stop
- if arg-1 is "off":
- set {log.%player%} to false
- message " {@prefix}&7Log表示を&coff&7にしました。"
- stop
- else:
- message "{@prefix}&7/cmd <on,off>"
- #Ip-Checker#
- #指定したプレイヤーのipをチェックします。同一のIPがあった場合、そのプレイヤーのIDも表示されます。#
- command /aip [<offline player>]:
- permission: Command.IP
- permission message: &cYou do not have permission
- trigger:
- if arg is not set:
- message "&a[IP-log]&ePlayer名を記入してください。"
- stop
- if arg is "all":
- loop all players:
- set {ip::%loop-player%} to ip of loop-player
- message "&a[IP-log]&b---------------------------------------------"
- message "&a[IP-log]&e%loop-player%'sIP&a: &6%{ip::%loop-player%}%" to player
- loop {ip::*}:
- if {ip::%loop-index%} is {ip::%loop-player%}:
- message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%"
- else:
- set {ip::%arg%} to ip of argument
- message "&a[IP-log]&e%arg%'sIP&a: &6%{ip::%arg%}%"
- loop {ip::*}:
- if {ip::%loop-index%} is {ip::%arg%}:
- message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%"
- on join:
- set {ip::%player%} to ip of player
- loop all players:
- if loop-player has permission "sk.admin":
- message "&a[IP-log]&e%player%'sIP&a: &6%{ip::%player%}%" to loop-player
- loop {ip::*}:
- if {ip::%loop-index%} is {ip::%player%}:
- message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement