Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # 他人の打ったコマンドを自分の画面に表示します。
- #
- # {players} 1=all 2=player 3=other
- command /command <text>:
- description: visible command
- usage: /command <all, player, other, off>
- trigger:
- if arg 1 is "all":
- set {players::%player%} to 1
- message "表示状態: PLAYER and OTHER"
- if arg 1 is "player":
- set {players::%player%} to 2
- message "表示状態: PLAYER only"
- if arg 1 is "other":
- set {players::%player%} to 3
- message "表示状態: OTHER only"
- if arg 1 is "off":
- clear {player::%player%}
- message "表示状態: OFF"
- on command:
- loop all players:
- if {players::%loop-player%} is set:
- set {_p} to loop-player
- set {_condition} to {players::%{_p}%}
- if {_condition} is 1 or 2:
- if player is set:
- message "&7[&a%player%&7]: &f/%complete command%" to {_p}
- if {_condition} is 1 or 3:
- if player is not set:
- message "&7[&a@&7]: &f/%complete command%" to {_p}
- on quit:
- clear {players::%player%}
- on disable:
- clear {players}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement