Advertisement
Guest User

Untitled

a guest
Aug 15th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #
  2. # 他人の打ったコマンドを自分の画面に表示します。
  3. #
  4.  
  5. # {players} 1=all 2=player 3=other
  6.  
  7. command /command <text>:
  8. description: visible command
  9. usage: /command <all, player, other, off>
  10. trigger:
  11. if arg 1 is "all":
  12. set {players::%player%} to 1
  13. message "表示状態: PLAYER and OTHER"
  14.  
  15. if arg 1 is "player":
  16. set {players::%player%} to 2
  17. message "表示状態: PLAYER only"
  18.  
  19. if arg 1 is "other":
  20. set {players::%player%} to 3
  21. message "表示状態: OTHER only"
  22.  
  23. if arg 1 is "off":
  24. clear {player::%player%}
  25. message "表示状態: OFF"
  26.  
  27. on command:
  28. loop all players:
  29. if {players::%loop-player%} is set:
  30. set {_p} to loop-player
  31. set {_condition} to {players::%{_p}%}
  32. if {_condition} is 1 or 2:
  33. if player is set:
  34. message "&7[&a%player%&7]: &f/%complete command%" to {_p}
  35. if {_condition} is 1 or 3:
  36. if player is not set:
  37. message "&7[&a@&7]: &f/%complete command%" to {_p}
  38.  
  39. on quit:
  40. clear {players::%player%}
  41.  
  42. on disable:
  43. clear {players}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement