chat_handler: type: world debug: false events: on player steps on block: - if ! && != wt && { - flag player wtchannel_joined:! - flag player channel:! - flag player wtchannel_passed:! - narrate "<&b>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != ek && { - flag player ekchannel_joined:! - flag player channel:! - flag player ekchannel_passed:! - narrate "<&a>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != fn && { - flag player fnchannel_joined:! - flag player channel:! - flag player fnchannel_passed:! - narrate "<&c>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != an && { - flag player anchannel_joined:! - flag player channel:! - flag player anchannel_passed:! - narrate "<&7>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != bht && { - flag player bhtchannel_joined:! - flag player channel:! - flag player bhtchannel_passed:! - narrate "<&4>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != bhs && { - flag player bhschannel_joined:! - flag player channel:! - flag player bhschannel_passed:! - narrate "<&e>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != fst && { - flag player fstchannel_joined:! - flag player channel:! - flag player fstchannel_passed:! - narrate "<&a>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != sw && { - flag player swchannel_joined:! - flag player channel:! - flag player swchannel_passed:! - narrate "<&6>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if != leader && { - flag player nlchannel_joined:! - flag player channel:! - narrate "<&8>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } on player chats: - if ! && != wt && { - flag player wtchannel_joined:! - flag player channel:! - flag player wtchannel_passed:! - narrate "<&b>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != ek && { - flag player ekchannel_joined:! - flag player channel:! - flag player ekchannel_passed:! - narrate "<&a>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != fn && { - flag player fnchannel_joined:! - flag player channel:! - flag player fnchannel_passed:! - narrate "<&c>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != an && { - flag player anchannel_joined:! - flag player channel:! - flag player anchannel_passed:! - narrate "<&7>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != bht && { - flag player bhtchannel_joined:! - flag player channel:! - flag player bhtchannel_passed:! - narrate "<&4>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != bhs && { - flag player bhschannel_joined:! - flag player channel:! - flag player bhschannel_passed:! - narrate "<&e>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != fst && { - flag player fstchannel_joined:! - flag player channel:! - flag player fstchannel_passed:! - narrate "<&a>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! && != sw && { - flag player swchannel_joined:! - flag player channel:! - flag player swchannel_passed:! - narrate "<&6>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if != leader && { - flag player nlchannel_joined:! - flag player channel:! - narrate "<&8>We detected that you were able to see messages from a channel that you shouldn't have been able to, so we kicked you to global." } - if ! { - queue clear } - if { - if queue clear - determine passively cancelled - announce to_flagged:wtchannel_joined format:wtformat } - if { - if queue clear - determine passively cancelled - announce to_flagged:ekchannel_joined format:ekformat } - if { - if queue clear - determine passively cancelled - announce to_flagged:fnchannel_joined format:fnformat } - if { - if queue clear - determine passively cancelled - announce to_flagged:anchannel_joined format:anformat } - if == rpchannel { - if queue clear - determine passively cancelled - narrate format:rpformat "" targets: } - if { - if queue clear - determine passively cancelled - announce to_flagged:bhtchannel_joined format:bhtformat } - if { - if queue clear - determine passively cancelled - announce to_flagged:bhschannel_joined format:bhsformat } - if { - if queue clear - determine passively cancelled - announce to_flagged:fstchannel_joined format:fstformat } - if { - if queue clear - determine passively cancelled - announce to_flagged:swchannel_joined format:swformat } - if { - if queue clear - determine passively cancelled - narrate format:whisperformat targets: } - if { - determine passively cancelled - announce format:nlformat to_flagged:nlchannel_joined } - if { - determine passively cancelled - announce format:lcformat to_flagged:lcchannel_joined } - if { - determine passively cancelled - announce format:staffformat to_flagged:staffchannel_joined } - if { - determine passively cancelled - announce format:builderformat to_flagged:builderchannel_joined } - if { - determine passively cancelled - announce format:tpformat to_flagged:tpchannel_joined } - if { - determine passively cancelled - announce format:amaguqformat to_flagged:amaguqchannel_joined } wtformat: type: format format: "<&b>[WT Chat] <&f><&b><&co> <&b>" ekformat: type: format format: "<&a>[EK Chat] <&f><&a><&co> <&a>" fnformat: type: format format: "<&c>[FN Chat] <&c><&c><&co> <&c>" anformat: type: format format: "<&7>[AN Chat] <&f><&7><&co> <&7>" rpformat: type: format format: "<&e>[RP Chat] <&e><&co> <&e>" bhtformat: type: format format: "<&4>[BhT Chat] <&4><&co> " bhsformat: type: format format: "<&e>[SB Chat] <&e><&co> " fstformat: type: format format: "<&a>[FST Chat] <&a><&co> " swformat: type: format format: "<&6>[SW Chat] <&6><&co> " whisperformat: type: format format: "<&5>[Whisper] <&d><&co> <&d>" nlformat: type: format format: "<&8>[Nation Leaders] <&7><&co> <&7>" lcformat: type: format format: "<&5>[Lore Council] <&d><&co> " staffformat: type: format format: "<&3>[Staff Chat] <&3><&co> " builderformat: type: format format: "<&2>[Builder Chat] <&2><&co> " tpformat: type: format format: "<&b>[Team Palladian] <&b><&co> " amaguqformat: type: format format: "<&9>[Amaguq] <&9><&co> " wtchannel_item: type: item material: i@water_bucket display name: <&3><&l>Water Tribe lore: - <&3>Click me to - <&3>join the WT - <&3>chat channel! ekchannel_item: type: item material: i@grass display name: <&2><&l>Earth Kingdom lore: - <&2>Click me to - <&2>join the EK - <&2>chat channel! fnchannel_item: type: item material: i@blaze_powder display name: <&4><&l>Fire Nation lore: - <&4>Click me to - <&4>join the FN - <&4>chat channel! anchannel_item: type: item material: i@string display name: <&7><&l>Air Nomads lore: - <&7>Click me to - <&7>join the AN - <&7>chat channel! bhtchannel_item: type: item material: i@red_wool display name: <&c><&l>Bhanti Tribe lore: - <&c>Click me to - <&c>join the BhT - <&c>chat channel! bhschannel_item: type: item material: i@sand display name: <&e><&l>Sandbender Tribe lore: - <&e>Click me to - <&e>join the SB - <&e>chat channel! fstchannel_item: type: item material: i@vine display name: <&a><&l>Foggy Swamp Tribe lore: - <&a>Click me to - <&a>join the FST - <&a>chat channel! swchannel_item: type: item material: i@blaze_rod display name: <&6><&l>Sun Warriors lore: - <&6>Click me to - <&6>join the SW - <&6>chat channel! rpchannel_item: type: item material: i@torch display name: <&e><&l>RP Channel lore: - <&e>Click me to - <&e>join the Roleplay - <&e>chat channel! globalchannel_item: type: item material: i@workbench display name: <&f><&l>Global Channel lore: - <&b>Click me to - <&b>join the Global - <&b>chat channel! whisperchannel_item: type: item material: i@painting display name: <&5><&l>Whisper Channel lore: - <&5>Click me to - <&5>join the Whisper - <&5>chat channel! maniluuq_credit: type: item material: i@sign display name: <&3>dChannels lore: - <&b>Created by - <&b>Maniluuq channel_exit_gui_item: type: item material: i@barrier display name: <&4><&l>Menu To Exit Channels lore: - <&4>Click me to - <&4>find the channel - <&4>exit page! ######################################################## ## Broadcast Toggle ## ######################################################## bct: type: command debug: false description: Toggle broadcast (Ops Only) name: bct usage: /bct permission: maniluuq.bct script: - if ! { - narrate "<&c>Sorry , but you need the permisison maniluuq.bct to use this command!" } - if { - flag player bct:! - narrate "<&c>Broadcast Mode<&co> Off" - queue clear } - if ! { - flag player bct - narrate "<&c>Broadcast Mode<&co> On" } bct_chathandler: type: world debug: false events: on player chats: - if { - if ! { - determine passively cancelled - announce format:bctformat } - if == wtchannel { - determine passively cancelled - announce to_flagged:wtchannel_joined format:wtbct } - if == ekchannel { - determine passively cancelled - announce to_flagged:ekchannel_joined format:ekbct } - if == fnchannel { - determine passively cancelled - announce to_flagged:fnchannel_joined format:fnbct } - if == anchannel { - determine passively cancelled - announce to_flagged:anchannel_joined format:anbct } - if == rpchannel { - determine passively cancelled - announce to_flagged:rpchannel_joined } - if == bhtchannel { - determine passively cancelled - announce to_flagged:bhtchannel_joined format:bhtbct } - if == bhschannel { - determine passively cancelled - announce to_flagged:bhschannel_joined format:bhsbct } - if == fstchannel { - determine passively cancelled - announce to_flagged:fstchannel_joined format:fstbct } - if == swchannel { - determine passively cancelled - announce to_flagged:swchannel_joined format:swbct } } bctformat: type: format format: "<&7><&l>" wtbct: type: format format: "<&3>[WT Announcement] " ekbct: type: format format: "<&2>[EK Announcement] " fnbct: type: format format: "<&4>[FN Announcement] <&c>" anbct: type: format format: "<&7>[AN Announcement] " rpbct: type: format format: "<&e><&l>" bhtbct: type: format format: "<&c>[BhT Announcement] " bhsbct: type: format format: "<&e>[SB Announcement] " fstbct: type: format format: "<&a>[FST Announcement] " swbct: type: format format: "<&6>[SW Announcement] " ######################################################## ## Channel Commands ## ######################################################## channel_command: type: command debug: false name: channel aliases: - ch - chan - channel script: - choose "": - case "help": - narrate "<&3>---------------------" - narrate "<&b> dChannels by Maniluuq" - narrate "<&3>---------------------" - narrate "<&3>/ch (channel)<&co> <&b>Join the specified channel." - narrate "<&3>/ch leave (channel)<&co> <&b>Leave the specified channel." - narrate "<&3>/ch list<&co> <&b>List all available channels." - narrate "<&3>/ch password (password)<&co> <&b>change the password of your nation's channel if you are the leader." - case "list": - narrate "<&b>Water Tribe (wt)" - narrate "<&a>Earth Kingdom (ek)" - narrate "<&c>Fire Nation (fn)" - narrate "<&7>Air Nomads (an)" - narrate "<&e>RP Channel (rp)" - narrate "<&4>Bhanti Tribe (bht)" - narrate "<&e>Sandbender Tribe (bhs)" - narrate "<&a>Foggy Swamp Tribe (fst)" - narrate "<&6>Sun Warriors (sw)" - narrate "<&5>Whisper (w)" - narrate "<&b>Please note that you must use the abbreviation in parentheisis to join a channel." - narrate "<&c>Private Channels<&co>" - narrate "<&8>Nation Leaders (nl)" - narrate "<&5>Lore Council (lc)" - narrate "<&3>Staff Channel (staff)" - narrate "<&2>Builder Channel (builder)" - narrate "<&b>Team Palladian (tp)" - narrate "<&9>Amaguq (amaguq)" - case "leave": - choose "": - case "2": - choose "": - case "wt": - if { - announce "<&a> has left the <&b>Water Tribe <&a>channel." to_flagged:wtchannel_joined - flag player wtchannel_joined:! - flag player channel:! - flag player wtchannel_passed:! } else { - narrate "<&c>You weren't in the WT Channel in the first place!" } - case "ek": - if { - announce "<&a> has left the <&a>Earth Kingdom <&a>channel." to_flagged:ekchannel_joined - flag player ekchannel_joined:! - flag player channel:! - flag player ekchannel_passed:! } else { - narrate "<&c>You weren't in the EK Channel in the first place!" } - case "fn": - if { - announce "<&a> has left the <&c>Fire Nation <&a>channel." to_flagged:fnchannel_joined - flag player fnchannel_joined:! - flag player channel:! - flag player fnchannel_passed:! } else { - narrate "<&c>You weren't in the FN Channel in the first place!" } - case "an": - if { - announce "<&a> has left the <&7>Air Nomads <&a>channel." to_flagged:anchannel_joined - flag player anchannel_joined:! - flag player channel:! - flag player anchannel_passed:! } else { - narrate "<&c>You weren't in the AN Channel in the first place!" } - case "bht": - if { - announce "<&a> has left the <&4>Bhanti Tribe <&a>channel." to_flagged:bhtchannel_joined - flag player bhtchannel_joined:! - flag player channel:! - flag player bhtchannel_passed:! } else { - narrate "<&c>You weren't in the BhT Channel in the first place!" } - case "bhs": - if { - announce "<&a> has left the <&e>Sandbender Tribe <&a>channel." to_flagged:bhschannel_joined - flag player bhschannel_joined:! - flag player channel:! - flag player bhschannel_passed:! } else { - narrate "<&c>You weren't in the BhS Channel in the first place!" } - case "fst": - if { - announce "<&a> has left the <&a>Foggy Swamp Tribe <&a>channel." to_flagged:fstchannel_joined - flag player fstchannel_joined:! - flag player channel:! - flag player fstchannel_passed:! } else { - narrate "<&c>You weren't in the FST Channel in the first place!" } - case "sw": - if { - announce "<&a> has left the <&6>Sun Warriors <&a>channel." to_flagged:swchannel_joined - flag player swchannel_joined:! - flag player channel:! - flag player swchannel_joined:! } else { - narrate "<&c>You weren't in the SW Channel in the first place!" } - case "nl": - if { - announce "<&a> has left the <&8>Nations <&a>channel." to_flagged:nlchannel_joined - flag player nlchannel_joined:! - flag player channel:! } else { - narrate "<&c>You weren't in the NL Channel in the first place!" } - case "lc": - if { - announce "<&a> has left the <&5>Lore Council <&a>channel." to_flagged:lcchannel_joined - flag player lcchannel_joined:! - flag player channel:! } else { - narrate "<&c>You weren't in the LC Channel in the first place!" } - case "builder": - if { - announce "<&a> has left the <&2>Builder <&a>channel." to_flagged:builderchannel_joined - flag player builderchannel_joined:! - flag player channel:! } else { - narrate "<&c>You weren't in the Builder Channel in the first place!" } - case "tp": - if { - announce "<&a> has left the <&b>Team Palladian <&a>channel." to_flagged:tpchannel_joined - flag player tpchannel_joined:! - flag player channel:! } else { - narrate "<&c>You weren't in the TP Channel in the first place!" } - case "amaguq": - if { - announce "<&a> has left the <&9>Amaguq <&a>channel." to_flagged:amaguqchannel_joined - flag player amaguqchannel_joined:! - flag player channel:! } else { - narrate "<&c>You weren't in the Amaguq Channel in the first place!" } - case "wt": - choose "": - case "2": - choose "": - case "": - if { - if ! { - flag player channel:! - flag player channel:wtchannel - flag player wtchannel_joined - flag player wtchannel_passed - announce "<&a> just joined the <&3>Water Tribe <&a>channel for the first time." to_flagged:wtchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:wtchannel - narrate "<&a>You are now chatting in <&3>Water Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if != wt { - narrate "<&c>You cannot join this channel!" - queue clear } - if ! { - flag player channel:! - flag player channel:wtchannel - flag player wtchannel_joined - flag player wtchannel_passed - announce "<&a> just joined the <&3>Water Tribe <&a>channel for the first time." to_flagged:wtchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:wtchannel - narrate "<&a>You are now chatting in <&3>Water Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - if ! { - flag player channel:! - flag player channel:wtchannel - flag player wtchannel_joined - announce "<&a> just joined the <&3>Water Tribe <&a>channel for the first time." to_flagged:wtchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:wtchannel - narrate "<&a>You are now chatting in <&3>Water Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if ! { - narrate "<&c>Incorrect password." - queue clear } - if ! { - flag player channel:! - flag player channel:wtchannel - flag player wtchannel_joined - announce "<&a> just joined the <&3>Water Tribe <&a>channel for the first time." to_flagged:wtchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:wtchannel - narrate "<&a>You are now chatting in <&3>Water Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "ek": - choose "": - case "2": - choose "": - case "": - if { - if ! { - flag player channel:! - flag player channel:ekchannel - flag player ekchannel_joined - flag player ekchannel_passed - announce "<&a> just joined the <&a>Earth Kingdom <&a>channel for the first time." to_flagged:ekchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:ekchannel - narrate "<&a>You are now chatting in <&a>Earth Kingdom" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if != ek { - narrate "<&c>You cannot join this channel!" - queue clear } - if ! { - flag player channel:! - flag player channel:ekchannel - flag player ekchannel_joined - flag player ekchannel_passed - announce "<&a> just joined the <&a>Earth Kingdom <&a>channel for the first time." to_flagged:ekchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:ekchannel - narrate "<&a>You are now chatting in <&a>Earth Kingdom" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - if ! { - flag player channel:! - flag player channel:ekchannel - flag player ekchannel_joined - announce "<&a> just joined the <&a>Earth Kingdom <&a>channel for the first time." to_flagged:ekchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:ekchannel - narrate "<&a>You are now chatting in <&a>Earth Kingdom" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if ! { - narrate "<&c>Incorrect password." - queue clear } - if ! { - flag player channel:! - flag player channel:ekchannel - flag player ekchannel_joined - announce "<&a> just joined the <&a>Earth Kingdom <&a>channel for the first time." to_flagged:ekchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:ekchannel - narrate "<&a>You are now chatting in <&a>Earth Kingdom" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "fn": - choose "": - case "2": - choose "": - case "": - if { - if ! { - flag player channel:! - flag player channel:fnchannel - flag player fnchannel_joined - flag player fnchannel_passed - announce "<&a> just joined the <&c>Fire Nation <&a>channel for the first time." to_flagged:fnchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:fnchannel - narrate "<&a>You are now chatting in <&c>Fire Nation" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if != fn { - narrate "<&c>You cannot join this channel!" - queue clear } - if ! { - flag player channel:! - flag player channel:fnchannel - flag player fnchannel_joined - flag player fnchannel_passed - announce "<&a> just joined the <&c>Fire Nation <&a>channel for the first time." to_flagged:fnchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:fnchannel - narrate "<&a>You are now chatting in <&c>Fire Nation" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - if ! { - flag player channel:! - flag player channel:fnchannel - flag player fnchannel_joined - announce "<&a> just joined the <&c>Fire Nation <&a>channel for the first time." to_flagged:fnchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:fnchannel - narrate "<&a>You are now chatting in <&c>Fire Nation" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if ! { - narrate "<&c>Incorrect password." - queue clear } - if ! { - flag player channel:! - flag player channel:fnchannel - flag player fnchannel_joined - announce "<&a> just joined the <&c>Fire Nation <&a>channel for the first time." to_flagged:fnchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:fnchannel - narrate "<&a>You are now chatting in <&c>Fire Nation" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "an": - choose "": - case "2": - choose "": - case "": - if { - if ! { - flag player channel:! - flag player channel:anchannel - flag player anchannel_joined - flag player anchannel_passed - announce "<&a> just joined the <&7>Air Nomads <&a>channel for the first time." to_flagged:anchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:anchannel - narrate "<&a>You are now chatting in <&7>Air Nomads" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if != an { - narrate "<&c>You cannot join this channel!" - queue clear } - if ! { - flag player channel:! - flag player channel:anchannel - flag player anchannel_joined - flag player anchannel_passed - announce "<&a> just joined the <&7>Air Nomads <&a>channel for the first time." to_flagged:anchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:anchannel - narrate "<&a>You are now chatting in <&7>Air Nomads" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - if ! { - flag player channel:! - flag player channel:anchannel - flag player anchannel_joined - announce "<&a> just joined the <&7>Air Nomads <&a>channel for the first time." to_flagged:anchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:anchannel - narrate "<&a>You are now chatting in <&7>Air Nomads" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if ! { - narrate "<&c>Incorrect password." - queue clear } - if ! { - flag player channel:! - flag player channel:anchannel - flag player anchannel_joined - announce "<&a> just joined the <&7>Air Nomads <&a>channel for the first time." to_flagged:anchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:anchannel - narrate "<&a>You are now chatting in <&7>Air Nomads" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "rp": - flag player channel:! - flag player channel:rpchannel - flag player rpchannel_joined - inventory close d:in@channel_gui - narrate "<&a>You are now chatting in <&e>RP" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - case "bht": - choose "": - case "2": - choose "": - case "": - if { - if ! { - flag player channel:! - flag player channel:bhtchannel - flag player bhtchannel_joined - flag player bhtchannel_passed - announce "<&a> just joined the <&4>Bhanti Tribe <&a>channel for the first time." to_flagged:bhtchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:bhtchannel - narrate "<&a>You are now chatting in <&4>Bhanti Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if != bht { - narrate "<&c>You cannot join this channel!" - queue clear } - if ! { - flag player channel:! - flag player channel:bhtchannel - flag player bhtchannel_joined - flag player bhtchannel_passed - announce "<&a> just joined the <&4>Bhanti Tribe <&a>channel for the first time." to_flagged:bhtchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:bhtchannel - narrate "<&a>You are now chatting in <&4>Bhanti Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - if ! { - flag player channel:! - flag player channel:bhtchannel - flag player bhtchannel_joined - announce "<&a> just joined the <&4>Bhanti Tribe <&a>channel for the first time." to_flagged:bhtchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:bhtchannel - narrate "<&a>You are now chatting in <&4>Bhanti Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if ! { - narrate "<&c>Incorrect password." - queue clear } - if ! { - flag player channel:! - flag player channel:bhtchannel - flag player bhtchannel_joined - announce "<&a> just joined the <&4>Bhanti Tribe <&a>channel for the first time." to_flagged:bhtchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:bhtchannel - narrate "<&a>You are now chatting in <&4>Bhanti Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "bhs": - choose "": - case "2": - choose "": - case "": - if { - if ! { - flag player channel:! - flag player channel:bhschannel - flag player bhschannel_joined - flag player bhschannel_passed - announce "<&a> just joined the <&e>Sandbender Tribe <&a>channel for the first time." to_flagged:bhschannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:bhschannel - narrate "<&a>You are now chatting in <&e>Sandbender Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if != bhs { - narrate "<&c>You cannot join this channel!" - queue clear } - if ! { - flag player channel:! - flag player channel:bhschannel - flag player bhschannel_joined - flag player bhschannel_passed - announce "<&a> just joined the <&e>Sandbender Tribe <&a>channel for the first time." to_flagged:bhschannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:bhschannel - narrate "<&a>You are now chatting in <&e>Sandbender Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - if ! { - flag player channel:! - flag player channel:bhschannel - flag player bhschannel_joined - announce "<&a> just joined the <&e>Sandbender Tribe <&a>channel for the first time." to_flagged:bhschannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:bhschannel - narrate "<&a>You are now chatting in <&e>Sandbender Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if ! { - narrate "<&c>Incorrect password." - queue clear } - if ! { - flag player channel:! - flag player channel:bhschannel - flag player bhschannel_joined - announce "<&a> just joined the <&e>Sandbender Tribe <&a>channel for the first time." to_flagged:bhschannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:bhschannel - narrate "<&a>You are now chatting in <&e>Sandbender Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "fst": - choose "": - case "2": - choose "": - case "": - if { - if ! { - flag player channel:! - flag player channel:fstchannel - flag player fstchannel_joined - flag player fstchannel_passed - announce "<&a> just joined the <&a>Foggy Swamp Tribe <&a>channel for the first time." to_flagged:fstchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:fstchannel - narrate "<&a>You are now chatting in <&a>Foggy Swamp Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if != fst { - narrate "<&c>You cannot join this channel!" - queue clear } - if ! { - flag player channel:! - flag player channel:fstchannel - flag player fstchannel_joined - flag player fstchannel_passed - announce "<&a> just joined the <&a>Foggy Swamp Tribe <&a>channel for the first time." to_flagged:fstchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:fstchannel - narrate "<&a>You are now chatting in <&a>Foggy Swamp Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - if ! { - flag player channel:! - flag player channel:fstchannel - flag player fstchannel_joined - announce "<&a> just joined the <&a>Foggy Swamp Tribe <&a>channel for the first time." to_flagged:fstchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:fstchannel - narrate "<&a>You are now chatting in <&a>Foggy Swamp Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if ! { - narrate "<&c>Incorrect password." - queue clear } - if ! { - flag player channel:! - flag player channel:fstchannel - flag player fstchannel_joined - announce "<&a> just joined the <&a>Foggy Swamp Tribe <&a>channel for the first time." to_flagged:fstchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:fstchannel - narrate "<&a>You are now chatting in <&a>Foggy Swamp Tribe" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "sw": - choose "": - case "2": - choose "": - case "": - if { - if ! { - flag player channel:! - flag player channel:swchannel - flag player swchannel_joined - flag player swchannel_passed - announce "<&a> just joined the <&6>Sun Warriors <&a>channel for the first time." to_flagged:swchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:swchannel - narrate "<&a>You are now chatting in <&6>Sun Warriors" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if != sw { - narrate "<&c>You cannot join this channel!" - queue clear } - if ! { - flag player channel:! - flag player channel:swchannel - flag player swchannel_joined - flag player swchannel_passed - announce "<&a> just joined the <&6>Sun Warriors <&a>channel for the first time." to_flagged:swchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:swchannel - narrate "<&a>You are now chatting in <&6>Sun Warriors" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - if ! { - flag player channel:! - flag player channel:swchannel - flag player swchannel_joined - announce "<&a> just joined the <&6>Sun Warriors <&a>channel for the first time." to_flagged:swchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:swchannel - narrate "<&a>You are now chatting in <&6>Sun Warriors" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } } - if ! { - narrate "<&c>Incorrect password." - queue clear } - if ! { - flag player channel:! - flag player channel:swchannel - flag player swchannel_joined - announce "<&a> just joined the <&6>Sun Warriors <&a>channel for the first time." to_flagged:swchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:swchannel - narrate "<&a>You are now chatting in <&6>Sun Warriors" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "nl": - if != leader { - narrate "<&c>You cannot join this channel!" - queue clear } - if ! { - flag player channel:! - flag player channel:nlchannel - flag player nlchannel_joined - inventory close d:in@channel_gui - announce "<&a> just joined the <&8>Nation Leaders <&a>channel for the first time." to_flagged:nlchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:nlchannel - inventory close d:in@channel_gui - narrate "<&a>You are now chatting in <&8>Nation Leaders" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "lc": - choose "": - case "2": - choose "": - case "": - if ! { - flag player channel:! - flag player channel:lcchannel - flag player lcchannel_joined - inventory close d:in@channel_gui - announce "<&a> just joined the <&5>Lore Council <&a>channel for the first time." to_flagged:lcchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:lcchannel - inventory close d:in@channel_gui - narrate "<&a>You are now chatting in <&5>Lore Council" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "staff": - choose "": - case "2": - choose "": - case "": - if ! { - flag player channel:! - flag player channel:staffchannel - flag player staffchannel_joined - inventory close d:in@channel_gui - announce "<&a> just joined the <&3>Staff <&a>channel for the first time." to_flagged:staffchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:staffchannel - inventory close d:in@channel_gui - narrate "<&a>You are now chatting in <&3>Staff" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "builder": - choose "": - case "2": - choose "": - case "": - if ! { - flag player channel:! - flag player channel:builderchannel - flag player builderchannel_joined - inventory close d:in@channel_gui - announce "<&a> just joined the <&2>Builders <&a>channel for the first time." to_flagged:builderchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:builderchannel - inventory close d:in@channel_gui - narrate "<&a>You are now chatting in <&2>Builders" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "tp": - choose "": - case "2": - choose "": - case "": - if ! { - flag player channel:! - flag player channel:tpchannel - flag player tpchannel_joined - inventory close d:in@channel_gui - announce "<&a> just joined the <&b>Team Palladian <&a>channel for the first time." to_flagged:tpchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:tpchannel - inventory close d:in@channel_gui - narrate "<&a>You are now chatting in <&b>Team Palladian" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "amaguq": - choose "": - case "2": - choose "": - case "": - if ! { - flag player channel:! - flag player channel:amaguqchannel - flag player amaguqchannel_joined - inventory close d:in@channel_gui - announce "<&a> just joined the <&9>Amaguq <&a>channel for the first time." to_flagged:amaguqchannel_joined - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - if { - flag player channel:! - flag player channel:amaguqchannel - inventory close d:in@channel_gui - narrate "<&a>You are now chatting in <&9>Amaguq" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - queue clear } - case "password": - choose "": - case "3": - choose "": - case "wt": - choose "": - case "": - if != leader && ! { - narrate "<&c>You cannot change the channel's password because you are not a nation leader!" - queue clear } - if { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set wtpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&b>The WT Channel's password is now " - queue clear } - if == wt { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set wtpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&b>The WT Channel's password is now " } - case "ek": - choose "": - case "": - if != leader && ! { - narrate "<&c>You cannot change the channel's password because you are not a nation leader!" - queue clear } - if { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set ekpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&2>The EK Channel's password is now " - queue clear } - if == ek { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set ekpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&2>The EK Channel's password is now " } - case "fn": - choose "": - case "": - if != leader && ! { - narrate "<&c>You cannot change the channel's password because you are not a nation leader!" - queue clear } - if { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set fnpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&c>The FN Channel's password is now " - queue clear } - if == fn { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set fnpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&c>The FN Channel's password is now " } - case "an": - choose "": - case "": - if != leader && ! { - narrate "<&c>You cannot change the channel's password because you are not a nation leader!" - queue clear } - if { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set anpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&7>The AN Channel's password is now " - queue clear } - if == an { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set anpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&7>The AN Channel's password is now " } - case "bht": - choose "": - case "": - if != leader && ! { - narrate "<&c>You cannot change the channel's password because you are not a nation leader!" - queue clear } - if { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set bhtpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&4>The BhT Channel's password is now " - queue clear } - if == bht { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set bhtpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&4>The BhT Channel's password is now " } - case "bhs": - choose "": - case "": - if != leader && ! { - narrate "<&c>You cannot change the channel's password because you are not a nation leader!" - queue clear } - if { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set bhspassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&e>The BhS Channel's password is now " - queue clear } - if == bhs { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set bhspassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&e>The BhS Channel's password is now " } - case "fst": - choose "": - case "": - if != leader && ! { - narrate "<&c>You cannot change the channel's password because you are not a nation leader!" - queue clear } - if { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set fstpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&a>The FST Channel's password is now " - queue clear } - if == fst { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set fstpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&a>The FST Channel's password is now " } - case "sw": - choose "": - case "": - if != leader && ! { - narrate "<&c>You cannot change the channel's password because you are not a nation leader!" - queue clear } - if { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set swpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&6>The SW Channel's password is now " - queue clear } - if == sw { - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set swpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&6>The SW Channel's password is now " } - case "tp": - choose "": - case "": - if != TeamPalladian { - narrate "<&c>You are not TeamPalladian, therefore you cannot change the password!" - queue clear } - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set tppassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&b>The TP Channel password has been set to " - case "amaguq": - choose "": - case "": - if != Tornak { - narrate "<&c>You are not Tornak, so you can't change the Amaguq channel password." - queue clear } - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set amaguqpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&9>The Amaguq Channel password has been set to " - case "staff": - choose "": - case "": - if ! { - narrate "<&c>Sorry, only OPs can change this channel's password!" - queue clear } - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set staffpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&3>The Staff Channel password has been set to " - case "builder": - choose "": - case "": - if ! { - narrate "<&c>Sorry, only OPs can change this channel's password!" - queue clear } - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set builderpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&2>The Builder Channel password has been set to " - case "lc": - choose "": - case "": - if ! { - narrate "<&c>Sorry, only OPs can change this channel's password!" - queue clear } - yaml "load:/channelpasswords/channelpasswords.yml" id:channelpasswords - yaml id:channelpasswords set lcpassword: - yaml "savefile:/channelpasswords/channelpasswords.yml" id:channelpasswords - narrate "<&5>The LC Channel password has been set to " - case "g": - flag player channel:! - narrate "<&a>You are now chatting in <&b>Global" - case "w": - flag player channel:! - flag player channel:whisperchannel - inventory close d:in@channel_gui - narrate "<&a>You are now chatting in <&5>Whisper" - narrate "<&f><&l>Type /ch g to exit the channel and return to global." - case "gui": - inventory open d:in@channel_gui - default: - narrate "<&c>Unknown command! Use /channel help to list possible commands."