Advertisement
TE1TO9_

Untitled

Apr 7th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.91 KB | None | 0 0
  1. command /ac [<text>]:
  2.     aliases: /a
  3.     trigger:
  4.         player is op
  5.         if command sender is the console:
  6.             if text-arg is not set:
  7.                 message "コンソールからはtextも入力してください"
  8.             else:
  9.                 message "&b[Console] %text-arg%" to ops
  10.            stop
  11.        if text-arg is not set:
  12.            if {adminchat::%uuid of player%} is not set:
  13.                set {adminchat::%uuid of player%} to true
  14.                message "<Light Aqua>AdminChat <Lime>on"
  15.            else if {adminchat::%uuid of player%} is true:
  16.                clear {adminchat::%uuid of player%}
  17.                message "<Light Aqua>AdminChat <Light Red>off"
  18.        else:
  19.            message "&b[%player%] %text-arg%" to ops
  20. #
  21. on chat:
  22.    player is an op
  23.    {adminchat::%uuid of player%} is true
  24.    cancel event
  25.    message "&b[%player%] %chat-message%" to ops
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement