Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &d[Team]&a
- command /teamjoin <text> [<player>]:
- aliases: tj
- permission: team.join
- permission message: &cError: 権限がありません
- executable by: players and console
- trigger:
- if arg-1 is not set:
- send "&cError: チームを選択してください (red or blue)"
- else:
- if arg-2 is not set:
- if arg-1 is "red":
- set {team.%player%} to red
- send "&cRed&dチームに参加しました"
- else if arg-1 is "blue":
- set {team.%player%} to blue
- send "&9Blue&dチームに参加しました"
- else:
- if arg-2 is set:
- if arg-1 is "red":
- set {team.%arg-2%} to red
- else if arg-1 is "blue":
- set {team.%arg-2%} to blue
- command /teamleave [<player>]:
- aliases: tl
- permission: team.leave
- permission message: &cError: 権限がありません
- executable by: players and console
- trigger:
- if arg-1 is not set:
- set {team.%player%} to unset
- send "&dチームから退出しました"
- else:
- if arg-1 is set:
- set {team.%arg-1%} to unset
- send "&d%arg-1%をチームから除外しました"
- command /teamchat [<text>]:
- aliases: tc
- permission: team.chat
- permission message: &cError: 権限がありません
- executable by: players and console
- trigger:
- if arg-1 is not set:
- send "&cError: メッセージ若しくは<set/unset>を指定してください"
- else:
- if arg-1 is "set":
- if {team.%player%} is not set:
- send "&cError: あなたはどのチームにも所属していません"
- else:
- if {team.%player%} is red:
- set {team.chat.%player%} to red
- send "&dTeamChatを固定しました"
- else if {team.%player%} is blue:
- set {team.chat.%player%} to blue
- send "&dTeamChatを固定しました"
- else if arg-1 is "unset":
- if {team.chat.%player%} is red:
- set {team.chat.%player%} to "unset"
- send "&dTeamChat固定を解除しました"
- else if {team.chat.%player%} is blue:
- set {team.chat.%player%} to "unset"
- send "&dTeamChat固定を解除しました"
- else:
- loop all players:
- if {team.%loop-player%} is blue:
- cancel event
- send "{@prefix} %player%&b:&d %message%" to loop-player
- else:
- loop all players:
- if {team.%loop-player%} is blue:
- cancel event
- send "{@prefix} %player%&b:&d %message%" to loop-player
- on chat:
- loop all players:
- if {team.%loop-player%} is blue:
- cancel event
- send "{@prefix} %player%&b:&d %message%" to loop-player
- if {team.%loop-player%} is red:
- cancel event
- send "{@prefix} %player%&b:&d %message%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement