Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- normalprefix:&6[&aChatSystem&6]
- adminprefix:&6[&aChatSystem&cAdmin&6]
- command /chatsay [<text>]:
- aliases: /chs
- permission: admin.chs
- permission message:Unknown command. Type "/help" for help.
- trigger:
- if arg 1 is "on" or "ok":
- if {chat.server} is "on":
- send "{@adminprefix} &cすでにサーバーではチャットを送信できる状態です"
- stop
- if {chat.server} is not "on":
- set {chat.server} to "on"
- send "{@adminprefix} &aサーバー全体でのチャット送信を許可しました"
- stop
- if arg 1 is "off" or "no":
- if {chat.server} is "off":
- send "{@adminprefix} &cすでにサーバーではチャットを送信できない状態です"
- stop
- if {chat.server} is not "off":
- set {chat.server} to "off"
- send "{@adminprefix} &aサーバー全体でのチャット送信を利用できないようにしました"
- stop
- else:
- send "{@adminprefix} &cサーバー全体でのチャット送信許可を"
- send "&c/chatsay (on|off) で指定してください"
- command /chatmute [<offline player>] [<text>]:
- aliases: /chm
- permission: admin.chm
- permission message:Unknown command. Type "/help" for help.
- trigger:
- if arg 1 is set:
- if arg 2 is "on" or "ok":
- if {chatp.%arg 1%} is true:
- send "{@adminprefix} &cすでに%arg 1%はチャットを送信できる状態です"
- stop
- if {chatp.%arg 1%} is not true:
- set {chatp.%arg 1%} to true
- send "{@adminprefix} &a%arg 1%のチャット送信をできる状態にしました"
- stop
- if arg 2 is "off" or "no":
- if {chatp.%arg 1%} is false:
- send "{@adminprefix} &cすでに%arg 1%はチャットを送信できない状態です"
- stop
- if {chatp.%arg 1%} is not false:
- set {chatp.%arg 1%} to false
- send "{@adminprefix} &a%arg 1%のチャット送信をできない状態にしました"
- stop
- else:
- send "{@adminprefix} &6プレイヤー名を指定してください"
- else if:
- send "{@adminprefix} &6OnかOffでプレイヤーをミュートするかしないか決めてください"
- every second:
- loop all players:
- if {chatp.%loop-player%} is not set:
- set {chatp.%loop-player%} to "on"
- On Chat:
- if {chatp.%player%} is false:
- cancel event
- message "{@normalprefix} &cあなたはミュートにされています"
- if player is not op:
- if {chat.server} is "off":
- cancel event
- message "{@normalprefix} &cこの鯖ではチャットの送信が許可されていません"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement