maozou

hirosi chat

Jan 2nd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. command /chat [<text>]:
  2. trigger:
  3. if arg-1 is "hirosi" or "all" or "help":
  4. if arg-1 is "all":
  5. set {chat.%player%} to "all"
  6. send "&6[Chat] &a送信先を&6ALL&aに変更しました。"
  7. if arg-1 is "hirosi":
  8. set {chat.%player%} to "hirosi"
  9. send "&6[chat] &a送信先を&7ひろし&aに変更しました。"
  10. if arg-1 is "help":
  11. send "&e----===&6[Helps]&e===-----"
  12. send "&7hirosi...&b発信先をひろしに変更します。"
  13. send "&7all...&b発信先を全員に変更します。"
  14. send "&7help...&bこの画面を表示します。"
  15. if arg-1 is not set:
  16. send "&e----===&6[Helps]&e===-----"
  17. send "&7hirosi...&b発信先をひろしに変更します。"
  18. send "&7all...&b発信先を全員に変更します。"
  19. send "&7help...&bこの画面を表示します。"
  20. on chat:
  21. if {chat.%player%} is "all":
  22. stop
  23. if {chat.%player%} is "hirosi":
  24. cancel event
  25. loop all players:
  26. if {chat.%loop-player%} is "hirosi":
  27. message "&7[HirosiChat]%{prefix::%uuid of player%}%&a%player%: &f%message%" to loop-player
Add Comment
Please, Sign In to add comment