# # Name - PrimeChat # Author - TrueFusion # Version - 2.2 # Questions/suggestions? # TrueFusion#2022 # # --> # You cannot configure the code, everything is in-game. # --> command /sethelp : usage: &8[&6&lPrimeChat&r&8] &6/sethelp (1-10) permission: sethelp.use permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! trigger: if arg-1 is greater than 10: send "&8[&6&lPrimeChat&r&8] &fPlease enter in a number between &61 - 10&f." stop trigger if arg-1 is less than 1: send "&8[&6&lPrimeChat&r&8] &fPlease enter in a number between &61 - 10&f." stop trigger if arg-1 is 1: set {help.1} to colored arg-2 send "&8[&6&lPrimeChat&r&8] &fSet the &61st &fline of the &6/help &fcommand to&8:&f %{help.1}%" if arg-1 is 2: set {help.2} to colored arg-2 send "&8[&6&lPrimeChat&r&8] &fSet the &62nd &fline of the &6/help &fcommand to&8:&f %{help.2}%" if arg-1 is 3: set {help.3} to colored arg-2 send "&8[&6&lPrimeChat&r&8] &fSet the &63rd &fline of the &6/help &fcommand to&8:&f %{help.3}%" if arg-1 is 4: set {help.4} to colored arg-2 send "&8[&6&lPrimeChat&r&8] &fSet the &64th &fline of the &6/help &fcommand to&8:&f %{help.4}%" if arg-1 is 5: set {help.5} to colored arg-2 send "&8[&6&lPrimeChat&r&8] &fSet the &65th &fline of the &6/help &fcommand to&8:&f %{help.5}%" if arg-1 is 6: set {help.6} to colored arg-2 send "&8[&6&lPrimeChat&r&8] &fSet the &66th &fline of the &6/help &fcommand to&8:&f %{help.6}%" if arg-1 is 7: set {help.7} to colored arg-2 send "&8[&6&lPrimeChat&r&8] &fSet the &67th &fline of the &6/help &fcommand to&8:&f %{help.7}%" if arg-1 is 8: set {help.8} to colored arg-2 send "&8[&6&lPrimeChat&r&8] &fSet the &68th &fline of the &6/help &fcommand to&8:&f %{help.8}%" if arg-1 is 9: set {help.9} to colored arg-2 send "&8[&6&lPrimeChat&r&8] &fSet the &69th &fline of the &6/help &fcommand to&8:&f %{help.9}%" if arg-1 is 10: set {help.10} to colored arg-2 send "&8[&6&lPrimeChat&r&8] &fSet the &610th &fline of the &6/help &fcommand to&8:&f %{help.10}%" command /help: usage: &8[&6&lPrimeChat&r&8] &6/help trigger: if {help.1} is set: send "%{help.1}%" if {help.2} is set: send "%{help.2}%" if {help.3} is set: send "%{help.3}%" if {help.4} is set: send "%{help.4}%" if {help.5} is set: send "%{help.5}%" if {help.6} is set: send "%{help.6}%" if {help.7} is set: send "%{help.7}%" if {help.8} is set: send "%{help.8}%" if {help.9} is set: send "%{help.9}%" if {help.10} is set: send "%{help.10}%" command /primechat: aliases: /pc permission: primechat.api permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/primechat trigger: open virtual chest inventory with size 3 named "&8[&6&lPrimeChat&r&8] &7API" to player format gui slot 0,1,2,3,5,6,7,8,9,17,18,19,20,21,22,23,24,25, and 26 of player with gray stained glass pane named "&7" format gui slot 4 of player with player's head named "&6%player%" if {channel.on} is not set: set {channel.on} to false if {channel.on} is false: format gui slot 10 of player with redstone named "&6&lChannels" with lore "", "&6On&8: &c&lFalse", and "" else: format gui slot 10 of player with redstone named "&6&lChannels" with lore "", "&6On&8: &a&lTrue", "", and "&6Click &fto see the &6browser" to run: make player execute "channelbrowser" if {notify.on} is not set: set {notify.on} to false if {notify.on} is false: format gui slot 11 of player with nether star named "&6&lNotifications" with lore "", "&6On&8: &c&lFalse", "", and "&6Click &fto turn it &6on&f." to run: set {notify.on} to true make player execute "primechat" if {notify.on} is true: format gui slot 11 of player with nether star named "&6&lNotifications" with lore "", "&6On&8: &a&lTrue", "", and "&6Click &fto turn it &6off&f." to run: set {notify.on} to false make player execute "primechat" if {server.prefix} is set: format gui slot 12 of player with dispenser named "&6&lPrefix" with lore "", "&6Current&8: %{server.prefix}%", and "" else: format gui slot 13 of player with dispenser named "&6&lPrefix" with lore "", "&6Current&8: &fNone yet! You should make one.", and "" command /serverprefix : permission: serverprefix.change permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/serverprefix (prefix) trigger: set {server.prefix} to colored arg-1 send "&8[&6&lPrimeChat&r&8] &fHow does it look? %{server.prefix}% Hello World" command /servercolor : permission: servercolor.change permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/servercolor (color code) trigger: set {server.color} to colored arg-1 send "&8[&6&lPrimeChat&r&8] &fYour server color is now set." command /creategroup : usage: &8[&6&lPrimeChat&r&8] &6/creategroup (group) permission: group.create permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! trigger: if {groups::*} does not contain arg-1: add arg-1 to {groups::*} send "&8[&6&lPrimeChat&r&8] &fCreated group &6%arg-1%" else: send "&8[&6&lPrimeChat&r&8] &fThere is already a group with that name." command /deletegroup : usage: &8[&6&lPrimeChat&r&8] &6/creategroup (group) permission: group.delete permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! trigger: if {groups::*} contains arg-1: remove arg-1 from {groups::*} delete {%arg-1%.players::*} send "&8[&6&lPrimeChat&r&8] &fDeleted group &6%arg-1%" else: send "&8[&6&lPrimeChat&r&8] &fThere is not a group with that name." command /setdefault : usage: &8[&6&lPrimeChat&r&8] &6/setdefault (group) permission: default.set permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! trigger: if {groups::*} contains arg-1: set {default.group} to arg-1 send "&8[&6&lPrimeChat&r&8] &fGroup &6%arg-1% &fwas set to the default group." else: send "&8[&6&lPrimeChat&r&8] &fThere is not a group with that name." on join: if {group.%player%} is not set: if {default.group} is not set: set {default.group} to "default" set {group.%player%} to {default.group} else: set {group.%player%} to {default.group} on join: if {join.message} is true: if {prefix.%{group.%player%}%} is set: set the join message to "%{prefix.%{group.%player%}%}% &f%player% joined the game." else: set the join message to "&8%player% &fjoined the game." else if {join.message} is false: set the join message to "&e%player%&e joined the game" else if {join.message} is not set: set the join message to "&e%player%&e joined the game" on quit: if {quit.message} is true: if {prefix.%{group.%player%}%} is set: set the quit message to "%{prefix.%{group.%player%}%}% &f%player% left the game." else: set the quit message to "&8%player% &fleft the game." else if {quit.message} is false: set the quit message to "&e%player%&e left the game" else if {quit.message} is not set: set the quit message to "&e%player%&e left the game" command /notificationstoggle : permission: notifications.toggle permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/notificationstoggle (on/off) trigger: if arg-1 is "on": if {notify.on} is not set: set {notify.on} to true send "&8[&6&lPrimeChat&r&8] &fSet the &7notifications &ffeature to &6on&f." else if {notify.on} is true: send "&8[&6&lPrimeChat&r&8] &fThe &7notifications &ffeature is already &6on&f." stop trigger else if {notify.on} is false: set {notify.on} to true send "&8[&6&lPrimeChat&r&8] &fSet the &7notifications &ffeature to &6on&f." else if arg-1 is "off": if {notify.on} is not set: send "&8[&6&lPrimeChat&r&8] &fThe &7notifications &ffeature is already &6off&f." stop trigger else if {notify.on} is false: send "&8[&6&lPrimeChat&r&8] &fThe &6notifications &ffeature is already &6off&f." stop trigger else if {notify.on} is true: set {notify.on} to false send "&8[&6&lPrimeChat&r&8] &fSet the &6notifications &ffeature to &6off&f." else: send "&8[&6&lPrimeChat&r&8] &6/notificationstoggle (on/off)" command /joinmsg : permission: joinmsg.use permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/joinmsg (on/off) trigger: if arg-1 is "on": if {join.message} is false: set {join.message} to true send "&8[&6&lPrimeChat&r&8] &fFancy join message is now &6On&f." else if {join.message} is not set: set {join.message} to true send "&8[&6&lPrimeChat&r&8] &fFancy join message is now &6On&f." else: send "&8[&6&lPrimeChat&r&8] &fThe fancy join message is already on. If you think this is a mistake please tell me on the Spigot page!" else if arg-1 is "off": if {join.message} is true: set {join.message} to false send "&8[&6&lPrimeChat&r&8] &fFancy join message is now &6Off&f." else if {join.message} is not set: set {join.message} to false send "&8[&6&lPrimeChat&r&8] &fThe fancy join message is already off. If you think this is a mistake please tell me on the Spigot page!" else: send "&8[&6&lPrimeChat&r&8] &fThe fancy join message is already off. If you think this is a mistake please tell me on the Spigot page!" command /quitmsg : permission: quitmsg.use permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/quitmsg (on/off) trigger: if arg-1 is "on": if {quit.message} is false: set {quit.message} to true send "&8[&6&lPrimeChat&r&8] &fFancy quit message is now &6On&f." else if {quit.message} is not set: set {quit.message} to true send "&8[&6&lPrimeChat&r&8] &fFancy quit message is now &6On&f." else: send "&8[&6&lPrimeChat&r&8] &fThe fancy quit message is already on. If you think this is a mistake please tell me on the Spigot page!" else if arg-1 is "off": if {quit.message} is true: set {quit.message} to false send "&8[&6&lPrimeChat&r&8] &fFancy quit message is now &6Off&f." else if {quit.message} is not set: set {quit.message} to false send "&8[&6&lPrimeChat&r&8] &fThe fancy quit message is already off. If you think this is a mistake please tell me on the Spigot page!" else: send "&8[&6&lPrimeChat&r&8] &fThe fancy quit message is already off. If you think this is a mistake please tell me on the Spigot page!" command /grouplist: permission: group.list permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/grouplist trigger: send "&8[&6&lPrimeChat&r&8] &6Groups&8: &f%{groups::*}%&8." command /addplayer : usage: &8[&6&lPrimeChat&r&8] &6/addplayer (group) (player) permission: group.add permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! trigger: if {groups::*} does not contain arg-1: send "&8[&6&lPrimeChat&r&8] &fThere is not a group with that name." else: if {%arg-1%.players::*} does not contain arg-2: loop {groups::*}: remove arg-2 from {%loop-value%.players::*} add arg-2 to {%arg-1%.players::*} set {group.%arg-2%} to arg-1 send "&8[&6&lPrimeChat&r&8] &fAdded player &6%arg-2% &fto &6%arg-1%&f." else: send "&8[&6&lPrimeChat&r&8] &6%arg-2% &fis already in &6%arg-1%&f." command /removeplayer : usage: &8[&6&lPrimeChat&r&8] &6/removeplayer (group) (player) permission: group.remove permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! trigger: if {groups::*} does not contain arg-1: send "&8[&6&lPrimeChat&r&8] &fThere is not a group with that name." else: if {%arg-1%.players::*} contains arg-2: remove arg-2 from {%arg-1%.players::*} set {group.%arg-2%} to {default.group} add arg-2 to {%{default.group}%.players::*} send "&8[&6&lPrimeChat&r&8] &fRemoved player &6%arg-2% &ffrom &6%arg-1%&f." else: send "&8[&6&lPrimeChat&r&8] &6%arg-2% &fis not in &6%arg-1%&f." command /listplayers : permission: players.list permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/listplayers (group) trigger: if {groups::*} contains arg-1: send "&8[&6&lPrimeChat&r&8] &6Groups&8: &f%{%arg-1%.players::*}%&8." else: send "&8[&6&lPrimeChat&r&8] &fThere is not a group with that name." command /setprefix : permission: prefix.set permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/setprefix (group) (prefix) trigger: if {groups::*} does not contain arg-1: send "&8[&6&lPrimeChat&r&8] &fThere is not a group with that name." else: set {prefix.%arg-1%} to colored arg-2 if {intercepter.%arg-1%} is not set: set {intercepter.%arg-1%} to colored "&8:" if {color.%arg-1%} is not set: set {color.%arg-1%} to colored "&f" if {suffix.%arg-1%} is not set: set {suffix.%arg-1%} to "&f" send "&8[&6&lPrimeChat&r&8] &fThe new prefix for &6%arg-1%&f is&8:&f %{prefix.%arg-1%}%" command /setsuffix : permission: suffix.set permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/setsuffix (group) (suffix) trigger: if {groups::*} does not contain arg-1: send "&8[&6&lPrimeChat&r&8] &fThere is not a group with that name." else: set {suffix.%arg-1%} to colored arg-2 if {prefix.%arg-1%} is not set: set {prefix.%arg-1%} to colored "&8[&7Default&r&8]" if {intercepter.%arg-1%} is not set: set {intercepter.%arg-1%} to colored "&8:" if {color.%arg-1%} is not set: set {color.%arg-1%} to colored "&f" send "&8[&6&lPrimeChat&r&8] &fThe new suffix for &6%arg-1%&f is&8:&f %{suffix.%arg-1%}%" command /setintercepter : permission: intercepter.set permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/setintercepter (group) (intercepter) trigger: if {groups::*} does not contain arg-1: send "&8[&6&lPrimeChat&r&8] &fThere is not a group with that name." else: set {intercepter.%arg-1%} to colored arg-2 if {prefix.%arg-1%} is not set: set {prefix.%arg-1%} to colored "&8[&7Default&r&8]" if {suffix.%arg-1%} is not set: set {suffix.%arg-1%} to colored "&f" if {color.%arg-1%} is not set: set {color.%arg-1%} to colored "&f" send "&8[&6&lPrimeChat&r&8] &fThe new intercepter for &6%arg-1%&f is&8:&f %{intercepter.%arg-1%}%" command /setcolor : permission: color.set permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/setcolor (group) (color) trigger: if {groups::*} does not contain arg-1: send "&8[&6&lPrimeChat&r&8] &fThere is not a group with that name." else: set {color.%arg-1%} to colored arg-2 if {prefix.%arg-1%} is not set: set {prefix.%arg-1%} to colored "&8[&7Default&r&8]" if {intercepter.%arg-1%} is not set: set {intercepter.%arg-1%} to colored "&8:" if {suffix.%arg-1%} is not set: set {suffix.%arg-1%} to colored "&f" send "&8[&6&lPrimeChat&r&8] &fThe new color for &6%arg-1%&f is&8:&f %{color.%arg-1%}%" command /mute []: permission: mute.use permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/mute (group/player) (reason) trigger: if {mute.%arg-1%} is true: send "&8[&6&lPrimeChat&r&8] &fThat player is already muted." stop trigger if {mute.%arg-1%} is not set: set {mute.%arg-1%} to false if {mute.%arg-1%} is false: set {mute.%arg-1%} to true if arg-2 is not set: if {server.prefix} is not set: if {server.color} is not set: broadcast "&8[&6&lPrimeChat&r&8] &6%arg-1% &fis now muted." else: broadcast "&8[&6&lPrimeChat&r&8] %{server.color}%%arg-1% &fis now muted." else: if {server.color} is not set: broadcast "%{prefix.server}% &6%arg-1% &fis now muted." else: broadcast "%{prefix.server}% %{server.color}%%arg-1% &fis now muted." else: if {server.prefix} is not set: if {server.color} is not set: broadcast "&8[&6&lPrimeChat&r&8] &6%arg-1% &fis muted for &6%arg-2%" else: broadcast "&8[&6&lPrimeChat&r&8] %{server.color}%%arg-1% &fis muted for %{server.color}%%arg-2%" else: if {server.color} is not set: broadcast "%{server.prefix}% &6%arg-1% &fis muted for &6%arg-2%" else: broadcast "%{server.prefix}% %{server.color}%%arg-1% &fis muted for %{server.color}%%arg-2%" command /tempmute []: permission: tempmute.use permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/tempmute (group/player) (reason) trigger: if {mute.%arg-1%} is true: send "&8[&6&lPrimeChat&r&8] &fThat player is already muted." stop trigger if {mute.%arg-1%} is not set: set {mute.%arg-1%} to false if {mute.%arg-1%} is false: if arg-2 is not set: set {minute.%arg-1%} to 0 set {hour.%arg-1%} to 0 set {day.%arg-1%} to 0 set {year.%arg-1%} to 0 tempMute(player, argument 1) else: set {minute.%arg-1%} to 0 set {hour.%arg-1%} to 0 set {day.%arg-1%} to 0 set {year.%arg-1%} to 0 tempMuteReason(player, argument 1, argument 2) function tempMute(p: player,a: offline player): open virtual chest inventory with size 6 named "&8%{_a}% &f&m-&r &6TempMute" to {_p} format gui slot 0 of {_p} with red stained glass pane named "&c-100" to run: remove 100 from {minute.%{_a}%} if {minute.%{_a}%} is less than 0: set {minute.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 1 of {_p} with red stained glass pane named "&c-50" to run: remove 50 from {minute.%{_a}%} if {minute.%{_a}%} is less than 0: set {minute.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 2 of {_p} with red stained glass pane named "&c-5" to run: remove 5 from {minute.%{_a}%} if {minute.%{_a}%} is less than 0: set {minute.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 3 of {_p} with red stained glass pane named "&c-1" to run: remove 1 from {minute.%{_a}%} if {minute.%{_a}%} is less than 0: set {minute.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 4 of {_p} with nether star named "&6%{minute.%{_a}%}% &fMinutes" format gui slot 5 of {_p} with lime stained glass pane named "&a+1" to run: add 1 to {minute.%{_a}%} tempMute({_p},{_a}) format gui slot 6 of {_p} with lime stained glass pane named "&a+5" to run: add 5 to {minute.%{_a}%} tempMute({_p},{_a}) format gui slot 7 of {_p} with lime stained glass pane named "&a+50" to run: add 50 to {minute.%{_a}%} tempMute({_p},{_a}) format gui slot 8 of {_p} with lime stained glass pane named "&a+100" to run: add 100 to {minute.%{_a}%} tempMute({_p},{_a}) format gui slot 9 of {_p} with red stained glass pane named "&c-100" to run: remove 100 from {hour.%{_a}%} if {hour.%{_a}%} is less than 0: set {hour.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 10 of {_p} with red stained glass pane named "&c-50" to run: remove 50 from {hour.%{_a}%} if {hour.%{_a}%} is less than 0: set {hour.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 11 of {_p} with red stained glass pane named "&c-5" to run: remove 5 from {hour.%{_a}%} if {hour.%{_a}%} is less than 0: set {hour.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 12 of {_p} with red stained glass pane named "&c-1" to run: remove 1 from {hour.%{_a}%} if {hour.%{_a}%} is less than 0: set {hour.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 13 of {_p} with nether star named "&6%{hour.%{_a}%}% &fHours" format gui slot 14 of {_p} with lime stained glass pane named "&a+1" to run: add 1 to {hour.%{_a}%} tempMute({_p},{_a}) format gui slot 15 of {_p} with lime stained glass pane named "&a+5" to run: add 5 to {hour.%{_a}%} tempMute({_p},{_a}) format gui slot 16 of {_p} with lime stained glass pane named "&a+50" to run: add 50 to {hour.%{_a}%} tempMute({_p},{_a}) format gui slot 17 of {_p} with lime stained glass pane named "&a+100" to run: add 100 to {hour.%{_a}%} tempMute({_p},{_a}) format gui slot 18 of {_p} with red stained glass pane named "&c-100" to run: remove 100 from {day.%{_a}%} if {day.%{_a}%} is less than 0: set {day.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 19 of {_p} with red stained glass pane named "&c-50" to run: remove 50 from {day.%{_a}%} if {day.%{_a}%} is less than 0: set {day.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 20 of {_p} with red stained glass pane named "&c-5" to run: remove 5 from {day.%{_a}%} if {day.%{_a}%} is less than 0: set {day.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 21 of {_p} with red stained glass pane named "&c-1" to run: remove 1 from {day.%{_a}%} if {day.%{_a}%} is less than 0: set {day.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 22 of {_p} with nether star named "&6%{day.%{_a}%}% &fDays" format gui slot 23 of {_p} with lime stained glass pane named "&a+1" to run: add 1 to {day.%{_a}%} tempMute({_p},{_a}) format gui slot 24 of {_p} with lime stained glass pane named "&a+5" to run: add 5 to {day.%{_a}%} tempMute({_p},{_a}) format gui slot 25 of {_p} with lime stained glass pane named "&a+50" to run: add 50 to {day.%{_a}%} tempMute({_p},{_a}) format gui slot 26 of {_p} with lime stained glass pane named "&a+100" to run: add 100 to {day.%{_a}%} tempMute({_p},{_a}) format gui slot 27 of {_p} with red stained glass pane named "&c-100" to run: remove 100 from {year.%{_a}%} if {year.%{_a}%} is less than 0: set {year.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 28 of {_p} with red stained glass pane named "&c-50" to run: remove 50 from {year.%{_a}%} if {year.%{_a}%} is less than 0: set {year.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 29 of {_p} with red stained glass pane named "&c-5" to run: remove 5 from {year.%{_a}%} if {year.%{_a}%} is less than 0: set {year.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 30 of {_p} with red stained glass pane named "&c-1" to run: remove 1 from {year.%{_a}%} if {year.%{_a}%} is less than 0: set {year.%{_a}%} to 0 tempMute({_p},{_a}) format gui slot 31 of {_p} with nether star named "&6%{year.%{_a}%}% &fYears" format gui slot 32 of {_p} with lime stained glass pane named "&a+1" to run: add 1 to {year.%{_a}%} tempMute({_p},{_a}) format gui slot 33 of {_p} with lime stained glass pane named "&a+5" to run: add 5 to {year.%{_a}%} tempMute({_p},{_a}) format gui slot 34 of {_p} with lime stained glass pane named "&a+50" to run: add 50 to {year.%{_a}%} tempMute({_p},{_a}) format gui slot 35 of {_p} with lime stained glass pane named "&a+100" to run: add 100 to {year.%{_a}%} tempMute({_p},{_a}) format gui slot 36,37,38,39,40,41,42,43, and 44 of {_p} with piston named "&7" format gui slot 49 of {_p} with skull of {_a} named "&6%{_a}%" with lore "", "&6Minutes&8: &f%{minute.%{_a}%}%", "&6Hours&8: &f%{hour.%{_a}%}%", "&6Days&8: &f%{day.%{_a}%}%", and "&6Years&8: &f%{year.%{_a}%}%" format gui slot 45 of {_p} with red concrete named "&c&lCancel" with lore "&fCancels the &6TempMute" to run: close {_p}'s inventory format gui slot 53 of {_p} with lime concrete named "&a&lConfirm" with lore "&fConfirms the &6TempMute" to run: set {mute.%{_a}%} to true if {server.prefix} is not set: if {server.color} is not set: broadcast "&8[&6&lPrimeChat&r&8] &6%{_a}% &fhas been muted by &6%{_p}%&f. &6Time&8: &fMinutes&8: &6%{minute.%{_a}%}%&8, &fHours&8: &6%{hour.%{_a}%}%&8, &fDays&8: &6%{day.%{_a}%}%&8, &fYears&8: &6%{year.%{_a}%}%&8." else: broadcast "&8[&6&lPrimeChat&r&8] %{server.color}%%{_a}% &fhas been muted by %{server.color}%%{_p}%&f. %{server.color}%Time&8: &fMinutes&8: %{server.color}%%{minute.%{_a}%}%&8, &fHours&8: %{server.color}%%{hour.%{_a}%}%&8, &fDays&8: %{server.color}%%{day.%{_a}%}%&8, &fYears&8: %{server.color}%%{year.%{_a}%}%&8." else: if {server.color} is not set: broadcast "%{server.prefix}% &6%{_a}% &fhas been muted by &6%{_p}%&f. &6Time&8: &fMinutes&8: &6%{minute.%{_a}%}%&8, &fHours&8: &6%{hour.%{_a}%}%&8, &fDays&8: &6%{day.%{_a}%}%&8, &fYears&8: &6%{year.%{_a}%}%&8." else: broadcast "%{server.prefix}% %{server.color}%%{_a}% &fhas been muted by %{server.color}%%{_p}%&f. %{server.color}%Time&8: &fMinutes&8: %{server.color}%%{minute.%{_a}%}%&8, &fHours&8: %{server.color}%%{hour.%{_a}%}%&8, &fDays&8: %{server.color}%%{day.%{_a}%}%&8, &fYears&8: %{server.color}%%{year.%{_a}%}%&8." close player's inventory loop {minute.%{_a}%} times: wait 1 minutes loop {hour.%{_a}%} times: wait 1 hours loop {day.%{_a}%} times: wait 1 days loop {year.%{_a}%} times: loop 365 times: wait 1 days set {mute.%{_a}%} to false if {server.prefix} is not set: if {server.color} is not set: broadcast "&8[&6&lPrimeChat&r&8] &6%{_a}% &fis now unmuted." else: broadcast "&8[&6&lPrimeChat&r&8] %{server.color}%%{_a}% &fis now unmuted." else: if {server.color} is not set: broadcast "%{server.prefix}% &6%{_a}% &fis now unmuted." else: broadcast "%{server.prefix}% %{server.color}%%{_a}% &fis now unmuted." function tempMuteReason(p: player,a: offline player,t: text): open virtual chest inventory with size 6 named "&8%{_a}% &f&m-&r &6TempMute" to {_p} format gui slot 0 of {_p} with red stained glass pane named "&c-100" to run: remove 100 from {minute.%{_a}%} if {minute.%{_a}%} is less than 0: set {minute.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 1 of {_p} with red stained glass pane named "&c-50" to run: remove 50 from {minute.%{_a}%} if {minute.%{_a}%} is less than 0: set {minute.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 2 of {_p} with red stained glass pane named "&c-5" to run: remove 5 from {minute.%{_a}%} if {minute.%{_a}%} is less than 0: set {minute.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 3 of {_p} with red stained glass pane named "&c-1" to run: remove 1 from {minute.%{_a}%} if {minute.%{_a}%} is less than 0: set {minute.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 4 of {_p} with nether star named "&6%{minute.%{_a}%}% &fMinutes" format gui slot 5 of {_p} with lime stained glass pane named "&a+1" to run: add 1 to {minute.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 6 of {_p} with lime stained glass pane named "&a+5" to run: add 5 to {minute.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 7 of {_p} with lime stained glass pane named "&a+50" to run: add 50 to {minute.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 8 of {_p} with lime stained glass pane named "&a+100" to run: add 100 to {minute.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 9 of {_p} with red stained glass pane named "&c-100" to run: remove 100 from {hour.%{_a}%} if {hour.%{_a}%} is less than 0: set {hour.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 10 of {_p} with red stained glass pane named "&c-50" to run: remove 50 from {hour.%{_a}%} if {hour.%{_a}%} is less than 0: set {hour.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 11 of {_p} with red stained glass pane named "&c-5" to run: remove 5 from {hour.%{_a}%} if {hour.%{_a}%} is less than 0: set {hour.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 12 of {_p} with red stained glass pane named "&c-1" to run: remove 1 from {hour.%{_a}%} if {hour.%{_a}%} is less than 0: set {hour.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 13 of {_p} with nether star named "&6%{hour.%{_a}%}% &fHours" format gui slot 14 of {_p} with lime stained glass pane named "&a+1" to run: add 1 to {hour.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 15 of {_p} with lime stained glass pane named "&a+5" to run: add 5 to {hour.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 16 of {_p} with lime stained glass pane named "&a+50" to run: add 50 to {hour.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 17 of {_p} with lime stained glass pane named "&a+100" to run: add 100 to {hour.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 18 of {_p} with red stained glass pane named "&c-100" to run: remove 100 from {day.%{_a}%} if {day.%{_a}%} is less than 0: set {day.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 19 of {_p} with red stained glass pane named "&c-50" to run: remove 50 from {day.%{_a}%} if {day.%{_a}%} is less than 0: set {day.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 20 of {_p} with red stained glass pane named "&c-5" to run: remove 5 from {day.%{_a}%} if {day.%{_a}%} is less than 0: set {day.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 21 of {_p} with red stained glass pane named "&c-1" to run: remove 1 from {day.%{_a}%} if {day.%{_a}%} is less than 0: set {day.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 22 of {_p} with nether star named "&6%{day.%{_a}%}% &fDays" format gui slot 23 of {_p} with lime stained glass pane named "&a+1" to run: add 1 to {day.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 24 of {_p} with lime stained glass pane named "&a+5" to run: add 5 to {day.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 25 of {_p} with lime stained glass pane named "&a+50" to run: add 50 to {day.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 26 of {_p} with lime stained glass pane named "&a+100" to run: add 100 to {day.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 27 of {_p} with red stained glass pane named "&c-100" to run: remove 100 from {year.%{_a}%} if {year.%{_a}%} is less than 0: set {year.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 28 of {_p} with red stained glass pane named "&c-50" to run: remove 50 from {year.%{_a}%} if {year.%{_a}%} is less than 0: set {year.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 29 of {_p} with red stained glass pane named "&c-5" to run: remove 5 from {year.%{_a}%} if {year.%{_a}%} is less than 0: set {year.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 30 of {_p} with red stained glass pane named "&c-1" to run: remove 1 from {year.%{_a}%} if {year.%{_a}%} is less than 0: set {year.%{_a}%} to 0 tempMuteReason({_p},{_a},{_t}) format gui slot 31 of {_p} with nether star named "&6%{year.%{_a}%}% &fYears" format gui slot 32 of {_p} with lime stained glass pane named "&a+1" to run: add 1 to {year.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 33 of {_p} with lime stained glass pane named "&a+5" to run: add 5 to {year.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 34 of {_p} with lime stained glass pane named "&a+50" to run: add 50 to {year.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 35 of {_p} with lime stained glass pane named "&a+100" to run: add 100 to {year.%{_a}%} tempMuteReason({_p},{_a},{_t}) format gui slot 36,37,38,39,40,41,42,43, and 44 of {_p} with piston named "&7" format gui slot 49 of {_p} with skull of {_a} named "&6%{_a}%" with lore "", "&6Minutes&8: &f%{minute.%{_a}%}%", "&6Hours&8: &f%{hour.%{_a}%}%", "&6Days&8: &f%{day.%{_a}%}%", and "&6Years&8: &f%{year.%{_a}%}%" format gui slot 45 of {_p} with red concrete named "&c&lCancel" with lore "&fCancels the &6TempMute" to run: close {_p}'s inventory format gui slot 53 of {_p} with lime concrete named "&a&lConfirm" with lore "&fConfirms the &6TempMute" to run: set {mute.%{_a}%} to true if {server.prefix} is not set: if {server.color} is not set: broadcast "&8[&6&lPrimeChat&r&8] &6%{_a}% &fhas been muted by &6%{_p}%&f for &6%{_t}%. &6Time&8: &fMinutes&8: &6%{minute.%{_a}%}%&8, &fHours&8: &6%{hour.%{_a}%}%&8, &fDays&8: &6%{day.%{_a}%}%&8, &fYears&8: &6%{year.%{_a}%}%&8." else: broadcast "&8[&6&lPrimeChat&r&8] %{server.color}%%{_a}% &fhas been muted by %{server.color}%%{_p}%&f for %{server.color}%%{_t}%. %{server.color}%Time&8: &fMinutes&8: %{server.color}%%{minute.%{_a}%}%&8, &fHours&8: %{server.color}%%{hour.%{_a}%}%&8, &fDays&8: %{server.color}%%{day.%{_a}%}%&8, &fYears&8: %{server.color}%%{year.%{_a}%}%&8." else: if {server.color} is not set: broadcast "%{server.prefix}% &6%{_a}% &fhas been muted by &6%{_p}%&f for &6%{_t}%. &6Time&8: &fMinutes&8: &6%{minute.%{_a}%}%&8, &fHours&8: &6%{hour.%{_a}%}%&8, &fDays&8: &6%{day.%{_a}%}%&8, &fYears&8: &6%{year.%{_a}%}%&8." else: broadcast "%{server.prefix}% %{server.color}%%{_a}% &fhas been muted by %{server.color}%%{_p}%&f for %{server.color}%%{_t}%. %{server.color}%Time&8: &fMinutes&8: %{server.color}%%{minute.%{_a}%}%&8, &fHours&8: %{server.color}%%{hour.%{_a}%}%&8, &fDays&8: %{server.color}%%{day.%{_a}%}%&8, &fYears&8: %{server.color}%%{year.%{_a}%}%&8." close player's inventory loop {minute.%{_a}%} times: wait 1 minutes loop {hour.%{_a}%} times: wait 1 hours loop {day.%{_a}%} times: wait 1 days loop {year.%{_a}%} times: loop 365 times: wait 1 days set {mute.%{_a}%} to false if {server.prefix} is not set: if {server.color} is not set: broadcast "&8[&6&lPrimeChat&r&8] &6%{_a}% &fis now unmuted." else: broadcast "&8[&6&lPrimeChat&r&8] %{server.color}%%{_a}% &fis now unmuted." else: if {server.color} is not set: broadcast "%{server.prefix}% &6%{_a}% &fis now unmuted." else: broadcast "%{server.prefix}% %{server.color}%%{_a}% &fis now unmuted." command /unmute : permission: unmute.use permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/unmute (player) trigger: if {mute.%arg-1%} is false: send "&8[&6&lPrimeChat&r&8] &fThat player is not muted!" stop trigger else if {mute.%arg-1%} is not set: send "&8[&6&lPrimeChat&r&8] &fThat player is not muted!" stop trigger else if {mute.%arg-1%} is true: set {mute.%arg-1%} to false if {server.prefix} is not set: if {server.color} is not set: broadcast "&8[&6&lPrimeChat&r&8] &6%arg-1% &fhas been unmuted." else: broadcast "&8[&6&lPrimeChat&r&8] %{server.color}%%arg-1% &fhas been unmuted." else: if {server.color} is not set: broadcast "%{server.prefix}% &6%arg-1% &fhas been unmuted." else: broadcast "%{server.prefix}% %{server.color}%%arg-1% &fhas been unmuted." command /mutechat: permission: mutechat.use permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/mutechat trigger: if {mutechat} is not set: set {mutechat} to true if {server.prefix} is not set: if {server.color} is not set: broadcast "&8[&6&lPrimeChat&r&8] &fThe chat was muted by &6%player%" else: broadcast "&8[&6&lPrimeChat&r&8] &fThe chat was muted by %{server.color}%%player%" else: if {server.color} is not set: broadcast "%{server.prefix}% &fThe chat was muted by &6%player%" else: broadcast "%{server.prefix}% &fThe chat was muted by %{server.color}%%player%" else if {mutechat} is false: set {mutechat} to true if {server.prefix} is not set: if {server.color} is not set: broadcast "&8[&6&lPrimeChat&r&8] &fThe chat was muted by &6%player%" else: broadcast "&8[&6&lPrimeChat&r&8] &fThe chat was muted by %{Server.color}%%player%" else: if {server.color} is not set: broadcast "%{server.prefix}% &fThe chat was muted by &6%player%" else: broadcast "%{server.prefix}% &fThe chat was muted by %{server.color}%%player%" else if {mutechat} is true: set {mutechat} to false if {server.prefix} is not set: if {server.color} is not set: broadcast "&8[&6&lPrimeChat&r&8] &fThe chat was unmuted by &6%player%" else: broadcast "&8[&6&lPrimeChat&r&8] &fThe chat was unmuted by %{server.color}%%player%" else: if {server.color} is not set: broadcast "%{server.prefix}% &fThe chat was unmuted by &6%player%" else: broadcast "%{server.prefix}% &fThe chat was unmuted by %{server.color}%%player%" command /clearchat: permission: clearchat.use permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/clearchat trigger: loop 290 times: broadcast "" if {server.prefix} is not set: if {server.color} is not set: broadcast "&8[&6&lPrimeChat&r&8] &fThe chat was cleared by &6%player%" else: broadcast "&8[&6&lPrimeChat&r&8] &fThe chat was cleared by %{server.color}%%player%" else: if {server.color} is not set: broadcast "%{server.prefix}% &fThe chat was cleared by &6%player%" else: broadcast "%{server.prefix}% &fThe chat was cleared by %{server.color}%%player%" on load: delete {ac::*} add "a" to {ac::*} add "b" to {ac::*} add "c" to {ac::*} add "d" to {ac::*} add "e" to {ac::*} add "f" to {ac::*} add "g" to {ac::*} add "h" to {ac::*} add "i" to {ac::*} add "j" to {ac::*} add "k" to {ac::*} add "l" to {ac::*} add "m" to {ac::*} add "n" to {ac::*} add "o" to {ac::*} add "p" to {ac::*} add "q" to {ac::*} add "r" to {ac::*} add "s" to {ac::*} add "t" to {ac::*} add "u" to {ac::*} add "v" to {ac::*} add "w" to {ac::*} add "x" to {ac::*} add "y" to {ac::*} add "z" to {ac::*} add "A" to {ac::*} add "B" to {ac::*} add "C" to {ac::*} add "D" to {ac::*} add "E" to {ac::*} add "F" to {ac::*} add "G" to {ac::*} add "H" to {ac::*} add "I" to {ac::*} add "J" to {ac::*} add "K" to {ac::*} add "L" to {ac::*} add "M" to {ac::*} add "N" to {ac::*} add "O" to {ac::*} add "P" to {ac::*} add "Q" to {ac::*} add "R" to {ac::*} add "S" to {ac::*} add "T" to {ac::*} add "U" to {ac::*} add "V" to {ac::*} add "W" to {ac::*} add "X" to {ac::*} add "Y" to {ac::*} add "Z" to {ac::*} add "0" to {ac::*} add "1" to {ac::*} add "2" to {ac::*} add "3" to {ac::*} add "4" to {ac::*} add "5" to {ac::*} add "6" to {ac::*} add "7" to {ac::*} add "8" to {ac::*} add "9" to {ac::*} add "~" to {ac::*} add "`" to {ac::*} add "!" to {ac::*} add "@" to {ac::*} add "##" to {ac::*} add "$" to {ac::*} add "%%" to {ac::*} add "^" to {ac::*} add "&" to {ac::*} add "*" to {ac::*} add "(" to {ac::*} add ")" to {ac::*} add "_" to {ac::*} add "-" to {ac::*} add "+" to {ac::*} add "=" to {ac::*} add "{" to {ac::*} add "}" to {ac::*} add "[" to {ac::*} add "]" to {ac::*} add "|" to {ac::*} add "\" to {ac::*} add ":" to {ac::*} add ";" to {ac::*} add """" to {ac::*} add "''" to {ac::*} add "<" to {ac::*} add "," to {ac::*} add ">" to {ac::*} add "." to {ac::*} add "?" to {ac::*} add "/" to {ac::*} command /antiswear []: permission: antiswear.admin permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/antiswear (add/remove/list) (word) trigger: if arg-1 is "add": if arg-2 is set: set {_c} to arg-2 loop {ac::*}: replace all "%loop-value%" in {_c} with "" if {_c} is "": add arg-2 to {antiswear::*} send "&8[&6&lPrimeChat&r&8] &fAdded &6%arg-2% &fto the &6antiswear&f." else: send "&8[&6&lPrimeChat&r&8] &fThat is not a word or it contains illegal characters for PrimeChat, anything that is not on keyboards will be filtered out automatically." else: send "usage: &8[&6&lPrimeChat&r&8] &6/antiswear (add/remove/list) (word)" to player else if arg-1 is "remove": if arg-2 is set: if {antiswear::*} contains arg-2: set {_c} to arg-2 loop {ac::*}: replace all "%loop-value%" in {_c} with "" if {_c} is "": remove arg-2 from {antiswear::*} send "&8[&6&lPrimeChat&r&8] &fRemoved &6%arg-2% &ffrom the &6antiswear&f." else: send "&8[&6&lPrimeChat&r&8] &fThat is not a word or it contains illegal characters for PrimeChat, anything that is not on keyboards will be filtered out automatically." else: send "usage: &8[&6&lPrimeChat&r&8] &6/antiswear (add/remove/list) (word)" to player else: send "&8[&6&lPrimeChat&r&8] &fThat is not in the antiswear." else if arg-1 is "list": send "&8[&6&lPrimeChat&r&8] &6Antiswear&8: &f%{antiswear::*}%&8." to player else: send "&8[&6&lPrimeChat&r&8] &6/antiswear (add/remove/list) (word)" to player on chat: cancel event if {notify.on} is not set: set {notify.on} to false if {notify.on} is false: if {channel.on} is not set: set {channel.on} to false if {channel.on} is true: if {group.%sender%} is not set: set {group.%sender%} to "default" if {prefix.%{group.%sender%}%}, {suffix.%{group.%sender%}%}, {intercepter.%{group.%sender%}%}, and {color.%{group.%sender%}%} is not set: if {mute.%sender%} is true: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fYou have been &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fYou have been %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}%&fYou have been &6muted&f!" else: send "%{server.prefix}%&fYou have been %{server.color}%muted&f!" else if {mutechat} is true: if sender is not a op: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fThe chat is &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fThe chat is %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}% &fThe chat is &6muted&f!" else: send "%{server.prefix}% &fThe chat is %{server.color}%muted&f!" else: loop all players: if {channel.%sender%} is {channel.%loop-value-1%}: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" send "&8%sender%&6: &f%{_c}%" to loop-player else: loop all players: if {channel.%sender%} is {channel.%loop-value-1%}: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" send "&8%sender%&6: &f%{_c}%" to loop-player else: if {mute.%sender%} is true: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fYou have been &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fYou have been %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}%&fYou have been &6muted&f!" else: send "%{server.prefix}%&fYou have been %{server.color}%muted&f!" else if {mutechat} is true: if sender is not a op: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fThe chat is &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fThe chat is %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}% &fThe chat is &6muted&f!" else: send "%{server.prefix}% &fThe chat is %{server.color}%muted&f!" else: loop all players: if {channel.%sender%} is {channel.%loop-value-1%}: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" send "%{prefix.%{group.%sender%}%}% %sender% %{suffix.%{group.%sender%}%}%%{intercepter.%{group.%sender%}%}% %{color.%{group.%sender%}%}%%{_c}%" to loop-player else: loop all players: if {channel.%sender%} is {channel.%loop-value-1%}: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" send "%{prefix.%{group.%sender%}%}% %sender% %{suffix.%{group.%sender%}%}%%{intercepter.%{group.%sender%}%}% %{color.%{group.%sender%}%}%%{_c}%" to loop-player else: if {group.%sender%} is not set: set {group.%sender%} to "default" if {prefix.%{group.%sender%}%}, {suffix.%{group.%sender%}%}, {intercepter.%{group.%sender%}%}, and {color.%{group.%sender%}%} is not set: if {mute.%sender%} is true: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fYou have been &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fYou have been %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}%&fYou have been &6muted&f!" else: send "%{server.prefix}%&fYou have been %{server.color}%muted&f!" else if {mutechat} is true: if sender is not a op: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fThe chat is &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fThe chat is %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}% &fThe chat is &6muted&f!" else: send "%{server.prefix}% &fThe chat is %{server.color}%muted&f!" else: loop all players: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" send "&8%sender%&6: &f%{_c}%" to loop-player else: loop all players: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" send "&8%sender%&6: &f%{_c}%" to loop-player else: if {mute.%sender%} is true: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fYou have been &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fYou have been %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}%&fYou have been &6muted&f!" else: send "%{server.prefix}%&fYou have been %{server.color}%muted&f!" else if {mutechat} is true: if sender is not a op: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fThe chat is &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fThe chat is %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}% &fThe chat is &6muted&f!" else: send "%{server.prefix}% &fThe chat is %{server.color}%muted&f!" else: loop all players: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" send "%{prefix.%{group.%sender%}%}% %sender% %{suffix.%{group.%sender%}%}%%{intercepter.%{group.%sender%}%}% %{color.%{group.%sender%}%}%%{_c}%" to loop-player else: loop all players: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" send "%{prefix.%{group.%sender%}%}% %sender% %{suffix.%{group.%sender%}%}%%{intercepter.%{group.%sender%}%}% %{color.%{group.%sender%}%}%%{_c}%" to loop-player else: if {channel.on} is not set: set {channel.on} to false if {channel.on} is true: if {group.%sender%} is not set: set {group.%sender%} to "default" if {prefix.%{group.%sender%}%}, {suffix.%{group.%sender%}%}, {intercepter.%{group.%sender%}%}, and {color.%{group.%sender%}%} is not set: if {mute.%sender%} is true: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fYou have been &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fYou have been %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}%&fYou have been &6muted&f!" else: send "%{server.prefix}%&fYou have been %{server.color}%muted&f!" else if {mutechat} is true: if sender is not a op: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fThe chat is &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fThe chat is %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}% &fThe chat is &6muted&f!" else: send "%{server.prefix}% &fThe chat is %{server.color}%muted&f!" else: loop all players: if {channel.%sender%} is {channel.%loop-value-1%}: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" loop all players: replace all "%loop-value-2%" in {_c} with colored "&a&l%loop-value-2%&r&f" if {_c} contains "%loop-value-2%": play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at loop-value-2 send "&8%sender%&6: &f%{_c}%" to loop-player else: loop all players: if {channel.%sender%} is {channel.%loop-value-1%}: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" loop all players: replace all "%loop-value-2%" in {_c} with colored "&a&l%loop-value-2%&r&f" if {_c} contains "%loop-value-2%": play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at loop-value-2 send "&8%sender%&6: &f%{_c}%" to loop-player else: if {mute.%sender%} is true: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fYou have been &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fYou have been %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}%&fYou have been &6muted&f!" else: send "%{server.prefix}%&fYou have been %{server.color}%muted&f!" else if {mutechat} is true: if sender is not a op: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fThe chat is &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fThe chat is %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}% &fThe chat is &6muted&f!" else: send "%{server.prefix}% &fThe chat is %{server.color}%muted&f!" else: loop all players: if {channel.%sender%} is {channel.%loop-value-1%}: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" loop all players: replace all "%loop-value-2%" in {_c} with colored "&a&l%loop-value-2%&r%{color.%{group.%sender%}%}%" if {_c} contains "%loop-value-2%": play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at loop-value-2 send "%{prefix.%{group.%sender%}%}% %sender% %{suffix.%{group.%sender%}%}%%{intercepter.%{group.%sender%}%}% %{color.%{group.%sender%}%}%%{_c}%" to loop-player else: loop all players: if {channel.%sender%} is {channel.%loop-value-1%}: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" loop all players: replace all "%loop-value-2%" in {_c} with colored "&a&l%loop-value-2%&r%{color.%{group.%sender%}%}%" if {_c} contains "%loop-value-2%": play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at loop-value-2 send "%{prefix.%{group.%sender%}%}% %sender% %{suffix.%{group.%sender%}%}%%{intercepter.%{group.%sender%}%}% %{color.%{group.%sender%}%}%%{_c}%" to loop-player else: if {group.%sender%} is not set: set {group.%sender%} to "default" if {prefix.%{group.%sender%}%}, {suffix.%{group.%sender%}%}, {intercepter.%{group.%sender%}%}, and {color.%{group.%sender%}%} is not set: if {mute.%sender%} is true: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fYou have been &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fYou have been %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}%&fYou have been &6muted&f!" else: send "%{server.prefix}%&fYou have been %{server.color}%muted&f!" else if {mutechat} is true: if sender is not a op: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fThe chat is &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fThe chat is %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}% &fThe chat is &6muted&f!" else: send "%{server.prefix}% &fThe chat is %{server.color}%muted&f!" else: loop all players: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" loop all players: replace all "%loop-value-2%" in {_c} with colored "&a&l%loop-value-2%&r&f" if {_c} contains "%loop-value-2%": play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at loop-value-2 send "&8%sender%&6: &f%{_c}%" to loop-player else: loop all players: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" loop all players: replace all "%loop-value-2%" in {_c} with colored "&a&l%loop-value-2%&r&f" if {_c} contains "%loop-value-2%": play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at loop-value-2 send "&8%sender%&6: &f%{_c}%" to loop-player else: if {mute.%sender%} is true: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fYou have been &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fYou have been %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}%&fYou have been &6muted&f!" else: send "%{server.prefix}%&fYou have been %{server.color}%muted&f!" else if {mutechat} is true: if sender is not a op: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fThe chat is &6muted&f!" else: send "&8[&6&lPrimeChat&r&8] &fThe chat is %{server.color}%muted&f!" else: if {server.color} is not set: send "%{server.prefix}% &fThe chat is &6muted&f!" else: send "%{server.prefix}% &fThe chat is %{server.color}%muted&f!" else: loop all players: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" loop all players: replace all "%loop-value-2%" in {_c} with colored "&a&l%loop-value-2%&r%{color.%{group.%sender%}%}%" if {_c} contains "%loop-value-2%": play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at loop-value-2 send "%{prefix.%{group.%sender%}%}% %sender% %{suffix.%{group.%sender%}%}%%{intercepter.%{group.%sender%}%}% %{color.%{group.%sender%}%}%%{_c}%" to loop-player else: loop all players: set {_c} to message loop {antiswear::*}: replace all "%loop-value-2%" in {_c} with colored "&c&l****&r&f" loop all players: replace all "%loop-value-2%" in {_c} with colored "&a&l%loop-value-2%&r%{color.%{group.%sender%}%}%" if {_c} contains "%loop-value-2%": play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at loop-value-2 send "%{prefix.%{group.%sender%}%}% %sender% %{suffix.%{group.%sender%}%}%%{intercepter.%{group.%sender%}%}% %{color.%{group.%sender%}%}%%{_c}%" to loop-player on load: if {dd} is not set: set {channel.on} to false set {notify.on} to false add "default" to {channels::*} add "staff" to {channels::*} set {dd} to "If you see this you are learning! Thanks for downloading!" on join: set {channel.%player%} to "default" command /channels []: permission: channel.admin permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/channels (create, remove, list) (channel)&f. &6Note&8: &fIf you are listing something only use &6/channels list&f. trigger: if arg-1 is "create": if arg-2 is set: if {channels::*} does not contain arg-2: add arg-2 to {channels::*} send "&8[&6&lPrimeChat&r&8] &fCreated channel &6%arg-2%" else: send "&8[&6&lPrimeChat&r&8] &fThere is already a channel with that name." else: send "&8[&6&lPrimeChat&r&8] &6/channels (create, remove, list) (name)&f. &6Note&8: &fIf you are listing something only use &6/channels list&f." else if arg-1 is "delete": if arg-2 is set: if {channels::*} contains arg-2: if arg-2 is not "default": if arg-2 is not "staff": loop all players: if {channel.%loop-player%} is arg-2: if {default.channel} is not set: set {default.channel} to "default" make loop-player execute "channel %{default.channel}%" if arg-2 is {default.channel}: set {default.channel} to "default" delete {bans.%arg-2%::*} delete {whitelist.status.%arg-2%} delete {whitelist.players.%arg-2%::*} remove arg-2 from {channels::*} send "&8[&6&lPrimeChat&r&8] &fDeleted channel &6%arg-2%" to player else: send "&8[&6&lPrimeChat&r&8] &fThat channel cannot be deleted." else: send "&8[&6&lPrimeChat&r&8] &fThat channel cannot be deleted." else: send "&8[&6&lPrimeChat&r&8] &fThere is not a channel with that name." else: send "&8[&6&lPrimeChat&r&8] &6/channels (create, remove, list) (name)&f. &6Note&8: &fIf you are listing something only use &6/channels list&f." else if arg-1 is "list": if arg-2 is not set: send "&8[&6&lPrimeChat&r&8] &6Channels&8: &f%{channels::*}%&8." to player else: send "&8[&6&lPrimeChat&r&8] &6/channels (create, remove, list) (name)&f. &6Note&8: &fIf you are listing something only use &6/channels list&f." else: send "&8[&6&lPrimeChat&r&8] &6/channels (create, remove, list) (name)&f. &6Note&8: &fIf you are listing something only use &6/channels list&f." command /setdefaultchannel : permission: defaultchannel.set permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/setdefaultchannel (channel) trigger: set {default.channel} to arg-1 send "&8[&6&lPrimeChat&r&8] &fSet the default channel to &6%arg-1%" to player command /channel : usage: &8[&6&lPrimeChat&r&8] &6/channel (channel) trigger: if {channel.on} is not set: set {channel.on} to true if {channel.on} is true: if {channels::*} does not contain arg-1: if {Server.prefix} is not set: send "&8[&6&lPrimeChat&r&8] &fThere is not a channel with that name." else: send "%{server.prefix}% &fThere is not a channel with that name." else: if arg-1 is "staff": if player is op: if {bans.%arg-1%::*} does not contain player: if {whitelist.status.%arg-1%} is true: if {whitelist.players.%arg-1%::*} contains player: set {channel.%player%} to "staff" if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fJoining &6%arg-1%&f..." else: send "&8[&6&lPrimeChat&r&8] &fJoining %{server.color}%%arg-1%&f..." else: if {server.color} is not set: send "%{server.prefix}% &fJoining &6%arg-1%&f..." else: send "%{server.prefix}% &fJoining %{server.color}%%arg-1%&f..." wait 2 seconds loop 300 times: send "" to player loop all players: if {channel.%player%} is {channel.%loop-player%}: if {server.color} is not set: send "&6%player%&f joined your channel." to loop-player else: send "%{server.color}%%player%&f joined your channel." to loop-player else: if {server.prefix} is not set: send "&8[&6&lPrimeChat&r&8] &fYou are not whitelisted on this channel." else: send "%{server.prefix}% &fYou are not whitelisted on this channel." else: set {channel.%player%} to "staff" if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fJoining &6%arg-1%&f..." else: send "&8[&6&lPrimeChat&r&8] &fJoining %{server.color}%%arg-1%&f..." else: if {server.color} is not set: send "%{server.prefix}% &fJoining &6%arg-1%&f..." else: send "%{server.prefix}% &fJoining %{server.color}%%arg-1%&f..." wait 2 seconds loop 300 times: send "" to player loop all players: if {channel.%player%} is {channel.%loop-player%}: if {server.color} is not set: send "&6%player%&f joined your channel." to loop-player else: send "%{server.color}%%player%&f joined your channel." to loop-player else: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fYou are banned from &6%arg-1%&f." else: send "&8[&6&lPrimeChat&r&8] &fYou are banned from %{server.color}%%arg-1%&f." else: if {server.color} is not set: send "%{server.prefix}% &fYou are banned from &6%arg-1%&f." else: send "%{server.prefix}% &fYou are banned from %{server.color}%%arg-1%&f." else: if {server.prefix} is not set: send "&8[&6&lPrimeChat&r&8] &fThis is for operators only." else: send "%{server.prefix}% &fThis is for operators only." else: if {bans.%arg-1%::*} does not contain player: if {whitelist.status.%arg-1%} is true: if {whitelist.players.%arg-1%::*} contains player: set {channel.%player%} to arg-1 if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fJoining &6%arg-1%&f..." else: send "&8[&6&lPrimeChat&r&8] &fJoining %{server.color}%%arg-1%&f..." else: if {server.color} is not set: send "%{server.prefix}% &fJoining &6%arg-1%&f..." else: send "%{server.prefix}% &fJoining %{server.color}%%arg-1%&f..." wait 2 seconds loop 300 times: send "" to player loop all players: if {channel.%player%} is {channel.%loop-player%}: if {server.color} is not set: send "&6%player%&f joined your channel." to loop-player else: send "%{server.color}%%player%&f joined your channel." to loop-player else: if {server.prefix} is not set: send "&8[&6&lPrimeChat&r&8] &fYou are not whitelisted on this channel." else: send "%{server.prefix}% &fYou are not whitelisted on this channel." else: set {channel.%player%} to arg-1 if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fJoining &6%arg-1%&f..." else: send "&8[&6&lPrimeChat&r&8] &fJoining %{server.color}%%arg-1%&f..." else: if {server.color} is not set: send "%{server.prefix}% &fJoining &6%arg-1%&f..." else: send "%{server.prefix}% &fJoining %{server.color}%%arg-1%&f..." wait 2 seconds loop 300 times: send "" to player loop all players: if {channel.%player%} is {channel.%loop-player%}: if {server.color} is not set: send "&6%player%&f joined your channel." to loop-player else: send "%{server.color}%%player%&f joined your channel." to loop-player else: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fYou are banned from &6%arg-1%&f." else: send "&8[&6&lPrimeChat&r&8] &fYou are banned from %{server.color}%%arg-1%&f." else: if {server.color} is not set: send "%{server.prefix}% &fYou are banned from &6%arg-1%&f." else: send "%{server.prefix}% &fYou are banned from %{server.color}%%arg-1%&f." else: if {server.prefix} is not set: send "&8[&6&lPrimeChat&r&8] &fThis feature is not on." else: send "%{server.prefix}% &fThis feature is not on." on quit: remove player from {players.%{channel.%player%}%::*} command /mychannel: usage: &8[&6&lPrimeChat&r&8] &6/mychannel trigger: if {channel.on} is not set: set {channel.on} to false if {channel.on} is true: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fYour channel is &6%{channel.%player%}%" else: send "&8[&6&lPrimeChat&r&8] &fYour channel is %{server.color}%%{channel.%player%}%" else: if {server.color} is not set: send "%{server.prefix}% &fYour channel is &6%{channel.%player%}%" else: send "%{server.prefix}% &fYour channel is %{server.color}%%{channel.%player%}%" stop else: if {server.prefix} is not set: send "&8[&6&lPrimeChat&r&8] &fThis feature is not on." else: send "%{server.prefix}% &fThis feature is not on." command /channelstoggle : permission: channel.toggle permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/channelstoggle (on/off) trigger: if arg-1 is "on": if {channel.on} is not set: set {channel.on} to true send "&8[&6&lPrimeChat&r&8] &fSet the &6channels &ffeature to &6on&f" loop all players: set {channel.%loop-player%} to "default" else if {channel.on} is true: send "&8[&6&lPrimeChat&r&8] &fThe &6channels &ffeature is already &6on&f." stop trigger else if {channel.on} is false: set {channel.on} to true send "&8[&6&lPrimeChat&r&8] &fSet the &6channels &ffeature to &6on&f." loop all players: set {channel.%loop-player%} to "default" else if arg-1 is "off": if {channel.on} is not set: send "&8[&6&lPrimeChat&r&8] &fThe &6channels &ffeature is already &6off&f." stop trigger else if {channel.on} is false: send "&8[&6&lPrimeChat&r&8] &fThe &6channels &ffeature is already &6off&f." stop trigger else if {channel.on} is true: set {channel.on} to false send "&8[&6&lPrimeChat&r&8] &fSet the &6channels &ffeature to &6off&f." else: send "&8[&6&lPrimeChat&r&8] &6/channelstoggle (on/off)" command /broadcast : aliases: /bc permission: broadcast.use permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/broadcast (message) trigger: if {server.prefix} is not set: broadcast "&8[&6&lBROADCAST&r&8] &r&f%colored arg-1%" else: broadcast "%{server.prefix}% &r&f%colored arg-1%" command /channelkick : permission: channel.kick permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/channelkick (player) trigger: if {channel.%arg-1%} is {channel.%player%}: if {server.prefix} is not set: send "&8[&6&lPrimeChat&r&8] &fYou were kicked from this channel." to arg-1 else: send "%{server.prefix}% &fYou were kicked from this channel." to arg-1 make arg-1 execute "channel %{default.channel}%" else: send "&8[&6&lPrimeChat&r&8] &fThere is no player with that name." command /channelban : permission: channel.ban permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/channelban (player) (channel) trigger: if {channels::*} contains arg-2: add arg-1 to {bans.%arg-2%::*} if {channel.%arg-1%} is arg-2: make arg-1 execute "channel %{default.channel}%" send "&8[&6&lPrimeChat&r&8] &fBanned &6%arg-1% &ffrom &6%arg-2%&f." else: send "&8[&6&lPrimeChat&r&8] &fThere is no channel with that name." command /channelunban : permission: channel.unban permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/channelunban (player) (channel) trigger: if {channels::*} contains arg-2: remove arg-1 from {bans.%arg-2%::*} send "&8[&6&lPrimeChat&r&8] &fUnbanned &6%arg-1% &ffrom &6%arg-2%&f." else: send "&8[&6&lPrimeChat&r&8] &fThere is no channel with that name." on join: add player to {players.%{default.channel}%} command /channelbrowser: trigger: if {channel.on} is not set: set {channel.on} to false if {channel.on} is true: if {server.prefix} is not set: open virtual chest inventory with size 6 named "&8[&6&lPrimeChat&r&8] &fBrowser" to player else: open virtual chest inventory with size 6 named "%{server.prefix}% &fBrowser" to player format gui slot 36,37,38,39,40,41,42,43, and 44 of player with piston named "&7" format gui slot 49 of player with barrier named "&c&lClose" with lore "&7Closes the browser" to run: close player's inventory format gui slot 45,46,47,50,51,52, and 53 of player with gray stained glass pane named "&7" if {mode.%player's uuid%} is not set: set {mode.%player's uuid%} to "all" if {mode.%player's uuid%} is "all": format gui slot 48 of player with ender pearl named "&7&lModes" with lore "", "&a&lAll", "&6Whitelisted channels", and "&4UnWhitelisted channels" to run: set {mode.%player's uuid%} to "whitelisted" make player execute "channelbrowser" if {mode.%player's uuid%} is "whitelisted": format gui slot 48 of player with ender pearl named "&7&lModes" with lore "", "&2All", "&e&lWhitelisted channels", and "&4UnWhitelisted channels" to run: set {mode.%player's uuid%} to "unwhitelisted" make player execute "channelbrowser" if {mode.%player's uuid%} is "unwhitelisted": format gui slot 48 of player with ender pearl named "&7&lModes" with lore "", "&2All", "&6Whitelisted channels", and "&c&lUnWhitelisted channels" to run: set {mode.%player's uuid%} to "all" make player execute "channelbrowser" loop {channels::*}: if {mode.%player's uuid%} is "all": if {whitelist.status.%loop-value%} is true: if {server.color} is not set: format gui slot of player with oak sign named "&6%loop-value%" with lore "", "&fWhitelist&8: &6On", and "&fPlayers&8: &6%{players.%loop-value%}%" to run: set {_c} to name of event-slot replace all "&6" in {_c} with "" make player execute "channel %{_c}%" close player's inventory else: format gui slot of player with oak sign named "%{server.color}%%loop-value%" with lore "", "&fWhitelist&8: %{server.color}%On", and "&fPlayers&8: %{server.color}%%{players.%loop-value%}%" to run: set {_c} to name of event-slot replace all "%{server.color}%" in {_c} with "" make player execute "channel %{_c}%" close player's inventory else: if {server.color} is not set: format gui slot of player with oak sign named "&6%loop-value%" with lore "", "&fWhitelist&8: &6Off", and "&fPlayers&8: &6%{players.%loop-value%}%" to run: set {_c} to name of event-slot replace all "&6" in {_c} with "" make player execute "channel %{_c}%" close player's inventory else: format gui slot of player with oak sign named "%{server.color}%%loop-value%" with lore "", "&fWhitelist&8: %{server.color}%Off", and "&fPlayers&8: %{server.color}%%{players.%loop-value%}%" to run: set {_c} to name of event-slot replace all "%{server.color}%" in {_c} with "" make player execute "channel %{_c}%" close player's inventory if {mode.%player's uuid%} is "unwhitelisted": if {whitelist.status.%loop-value%} is false: if {server.color} is not set: format gui slot of player with oak sign named "&6%loop-value%" with lore "", "&fWhitelist&8: &6Off", and "&fPlayers&8: &6%{players.%loop-value%}%" to run: set {_c} to name of event-slot replace all "&6" in {_c} with "" make player execute "channel %{_c}%" close player's inventory else: format gui slot of player with oak sign named "%{server.color}%%loop-value%" with lore "", "&fWhitelist&8: %{server.color}%Off", and "&fPlayers&8: %{server.color}%%{players.%loop-value%}%" to run: set {_c} to name of event-slot replace all "%{server.color}%" in {_c} with "" make player execute "channel %{_c}%" close player's inventory else if {whitelist.status.%loop-value%} is not set: if {server.color} is not set: format gui slot of player with oak sign named "&6%loop-value%" with lore "", "&fWhitelist&8: &6Off", and "&fPlayers&8: &6%{players.%loop-value%}%" to run: set {_c} to name of event-slot replace all "&6" in {_c} with "" make player execute "channel %{_c}%" close player's inventory else: format gui slot of player with oak sign named "%{server.color}%%loop-value%" with lore "", "&fWhitelist&8: %{server.color}%Off", and "&fPlayers&8: %{server.color}%%{players.%loop-value%}%" to run: set {_c} to name of event-slot replace all "%{server.color}%" in {_c} with "" make player execute "channel %{_c}%" close player's inventory if {mode.%player's uuid%} is "whitelisted": if {whitelist.status.%loop-value%} is true: if {server.color} is not set: format gui slot of player with oak sign named "&6%loop-value%" with lore "", "&fWhitelist&8: &6On", and "&fPlayers&8: &6%{players.%loop-value%}%" to run: set {_c} to name of event-slot replace all "&6" in {_c} with "" make player execute "channel %{_c}%" close player's inventory else: format gui slot of player with oak sign named "%{server.color}%%loop-value%" with lore "", "&fWhitelist&8: %{server.color}%On", and "&fPlayers&8: %{server.color}%%{players.%loop-value%}%" to run: set {_c} to name of event-slot replace all "%{server.color}%" in {_c} with "" make player execute "channel %{_c}%" close player's inventory else: send "&8[&6&lPrimeChat&r&8] &fThis feature is not on." every 1 seconds: loop {channels::*}: set {players.%loop-value-1%} to 0 loop all players: if {channel.%loop-value-2%} is "%loop-value-1%": add 1 to {players.%loop-value-1%} command /channelwhitelist []: permission: channel.whitelist permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/channelwhitelist (channel) (on/off/add/remove/list) (player)&f. &6Note&8: &fOnly specify the player when you are &6adding &for &6removing&f. trigger: if {channels::*} contains arg-1: if arg-2 is "on": if {whitelist.status.%arg-1%} is not set: set {whitelist.status.%arg-1%} to true send "&8[&6&lPrimeChat&r&8] &fTurned &6on &fthe whitelist for &6%arg-1%&f." else if {whitelist.%arg-1%} is true: send "&8[&6&lPrimeChat&r&8] &fThe whitelist is already &6on&f!" stop trigger else if {whitelist.status.%arg-1%} is false: set {whitelist.staus.%arg-1%} to true send "&8[&6&lPrimeChat&r&8] &fTurned &6on &fthe whitelist for &6%arg-1%&f." else if arg-2 is "off": if {whitelist.status.%arg-1%} is not set: set {whitelist.status.%arg-1%} to false send "&8[&6&lPrimeChat&r&8] &fThe whitelist is already &6off&f!" stop trigger else if {whitelist.%arg-1%} is false: send "&8[&6&lPrimeChat&r&8] &fThe whitelist is already &6off&f!" stop trigger else if {whitelist.status.%arg-1%} is true: set {whitelist.status.%arg-1%} to false send "&8[&6&lPrimeChat&r&8] &fTurned &6off &fthe whitelist for &6%arg-1%&f." else if arg-2 is "add": if arg-3 is set: if {whitelist.players.%arg-1%::*} contains arg-3: send "&8[&6&lPrimeChat&r&8] &fThat player is already in &6%arg-1%&f'&fs whitelist." else: add arg-3 to {whitelist.players.%arg-1%::*} send "&8[&6&lPrimeChat&r&8] &fAdded &6%arg-3% &fto &6%arg-1%&f'&fs whitelist." stop trigger else: send "&8[&6&lPrimeChat&r&8] &6/channelwhitelist (channel) (on/off/add/remove/list) (player)&f. &6Note&8: &fOnly specify the player when you are &6adding &for &6removing&f." else if arg-2 is "remove": if arg-3 is set: if {whitelist.players.%arg-1%::*} does not contain arg-3: send "&8[&6&lPrimeChat&r&8] &fThat player is not in &6%arg-1%&f'&fs whitelist." else: remove arg-3 from {whitelist.players.%arg-1%::*} send "&8[&6&lPrimeChat&r&8] &fRemoved &6%arg-3% &ffrom &6%arg-1%&f'&fs whitelist." stop trigger else: send "&8[&6&lPrimeChat&r&8] &6/channelwhitelist (channel) (on/off/add/remove/list) (player)&f. &6Note&8: &fOnly specify the player when you are &6adding &for &6removing&f." else if arg-2 is "list": send "&8[&6&lPrimeChat&r&8] &6%arg-1%&f'&fs &6whitelist&8: &f%{whitelist.players.%arg-1%::*}%&8." else: send "&8[&6&lPrimeChat&r&8] &fThere is no channel with that name." command /channelbroadcast : aliases: /channelbc permission: channelbroadcast.use permission message: &8[&6&lPrimeChat&r&8] &fYou do not have permissions! usage: &8[&6&lPrimeChat&r&8] &6/channelbroadcast (channel) (message) trigger: if {channels::*} does not contain arg-1: send "&8[&6&lPrimeChat&r&8] &fThere is not a channel with that name." else if {channels::*} contains arg-1: loop all players: if {channel.%loop-player%} is arg-1: if {server.prefix} is not set: send "&8[&6&lBROADCAST&r&8] &f%colored arg-2%" to loop-player else: send "%{server.prefix}% &f%colored arg-2%" to loop-player command /message : aliases: /msg usage: &8[&6&lPrimeChat&r&8] &6/message (player) (message) trigger: if {mute.%player%} is not set: set {mute.%player%} to false if {mute.%player%} is false: if {server.color} is not set: send "&8[&6&lTo&r&8] &6%arg-1%&8: &f%arg-2%" to player else: send "&8[%{server.color}%&lTo&r&8] %{server.color}%%arg-1%&8: &f%arg-2%" to player if {ignore.%arg-1%::*} does not contain player: if {server.color} is not set: send "&8[&6&lFrom&r&8] &6%player%&8: &f%arg-2%" to arg-1 else: send "&8[%{server.color}%&lFrom&r&8] %{server.color}%%player%&8: &f%arg-2%" to arg-1 else: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fYou have been &6muted&f!" to player else: send "&8[&lPrimeChat&r&8] &fYou have been %{server.color}%muted&f!" to player else: if {server.color} is not set: send "%{server.prefix}% &fYou have been &6muted&f!" to player else: send "%{server.prefix}% &fYou have been %{server.color}%muted&f!" to player command /ignore : usage: &8[&6&lPrimeChat&r&8] &6/ignore (player) trigger: if {ignore.%player%::*} does not contain arg-1: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fAdded &6%arg-1% &fto your ignore list." else: send "&8[&lPrimeChat&r&8] &fAdded %{server.color}%%arg-1% &fto your ignore list." else: if {server.color} is not set: send "%{server.prefix}% &fAdded &6%arg-1% &fto your ignore list." else: send "%{server.prefix}% &fAdded %{server.color}%%arg-1% &fto your ignore list." add arg-1 to {ignore.%player%::*} else: if {server.prefix} is not set: if {server.color} is not set: send "&8[&6&lPrimeChat&r&8] &fRemoved &6%arg-1% &ffrom your ignore list." else: send "&8[&6&lPrimeChat&r&8] &fRemoved %{server.color}%%arg-1% &ffrom your ignore list." else: if {server.color} is not set: send "%{server.prefix}% &fRemoved &6%arg-1% &ffrom your ignore list." else: send "%{server.prefix}% &fRemoved %{server.color}%%arg-1% &ffrom your ignore list." remove arg-1 from {ignore.%player%::*}