command /servers: trigger: open chest with 1 row named "&aYotaWar Servers" to player set {Inventory.%player%.Open} to true format slot 3 of player with cyan glass pane named "&cFactions" with lore "&7Join this server" to close then run [execute player command "/joinfactionss"] format slot 4 of player with red glass pane named "&cParkour" with lore "&7Join this server" to close then run [execute player command "/joinparkour"] format slot 5 of player with yellow glass pane named "&cBedwars" with lore "&7Join this server" to close then run [execute player command "/joinbedwars"] on right click with nether star: if player is holding a nether star named "&aServer Selector": execute player command "/servers" command /joinfactionss: trigger: teleport player to {factions} send "&7You have been sent to &cFactions" execute console command "/pex user %player% add factionsjoined" execute console command "/pex user %player% remove parkour" execute console command "/pex user %player% remove bedwars" command /joinparkour: trigger: teleport player to {parkour} send "&7You have been sent to &cParkour" execute console command "/pex user %player% add parkour" execute console command "/pex user %player% remove bedwars" execute console command "/pex user %player% remove factionsjoined" command /joinbedwars: trigger: teleport player to {bedwars} send "&7You have been sent to &cBedwars" execute console command "/pex user %player% add bedwars" execute console command "/pex user %player% remove parkour" execute console command "/pex user %player% remove factionsjoined" command /spawn: aliases: /hub trigger: execute console command "/pex user %player% remove factionsjoined" execute console command "/pex user %player% remove bedwars" execute console command "/pex user %player% remove parkour" send "&7You have been sent to the hub!" teleport player to {spawn} send "&7" send "&7If you wish to be sent to the &cminehut &7hub, type &c/mhub" every 20 seconds in "world": loop all players: if loop-player has permission "factionsjoined": wipe loop-player's sidebar set name of sidebar of loop-player to "&c&lYotaWar &7| &fMinigames" set score "&c&m---------------" in sidebar of loop-player to 14 set score "&7" in sidebar of loop-player to 13 set score " &7Rank &8» &c%{_prefix}%" in sidebar of loop-player to 12 set {_prefix} to "%colored loop-player's prefix%" replace all "[" and "]" with "" in {_prefix} set score " &7Server &8» &cFactions" in sidebar of loop-player to 11 set score "&f" in sidebar of loop-player to 10 set score "&7&oYotaWar.minehut.gg" in sidebar of loop-player to 9 set score "&c&m---------------" in sidebar of loop-player to 8 if loop-player has permission "bedwars": wipe loop-player's sidebar set name of sidebar of loop-player to "&c&lYotaWar &7| &fMinigames" set score "&c&m---------------" in sidebar of loop-player to 14 set score "&7" in sidebar of loop-player to 13 set score " &7Rank &8» &c%{_prefix}%" in sidebar of loop-player to 12 set {_prefix} to "%colored loop-player's prefix%" replace all "[" and "]" with "" in {_prefix} set score " &7Server &8» &cBedwars" in sidebar of loop-player to 11 set score "&f" in sidebar of loop-player to 10 set score "&7&oYotaWar.minehut.gg" in sidebar of loop-player to 9 set score "&c&m---------------" in sidebar of loop-player to 8 if loop-player has permission "parkour": wipe loop-player's sidebar set name of sidebar of loop-player to "&c&lYotaWar &7| &fMinigames" set score "&c&m---------------" in sidebar of loop-player to 14 set score "&7" in sidebar of loop-player to 13 set score " &7Rank &8» &c%{_prefix}%" in sidebar of loop-player to 12 set {_prefix} to "%colored loop-player's prefix%" replace all "[" and "]" with "" in {_prefix} set score " &7Server &8» &cParkour" in sidebar of loop-player to 11 set score "&f" in sidebar of loop-player to 10 set score "&7&oYotaWar.minehut.gg" in sidebar of loop-player to 9 set score "&c&m---------------" in sidebar of loop-player to 8 command /mutechat []: trigger: if arg-1 is not set: send "&c/mutechat on/off" if arg-1 is set: if {mutechat} is true: send "&7The chat is alredy muted!" if arg-1 is "on": set {mutechat} to true broadcast "&c&lThe chat has been muted!" broadcast "&7&l------------------------" broadcast "&7Chat muted by: &c%player%" if arg-1 is "off": set {mutechat} to false broadcast "&7Chat has been unmuted by &c%player%" if {mutechat} is false: send "&7The chat is alredy &cmuted&7!" stop command /opsword: trigger: give player 1 diamond sword with sharpness 50 on chat: if player has permission "talkwhilemuted": stop if {mutechat} is true: send "&cThe chat has been muted!" cancel event command /drop: trigger: send "&7You are not allowed to drop the &aServer Selector&7!" to player command /sethub: trigger: set {spawn} to location on join: execute console command "/pex user %player% remove factionsjoined" execute console command "/pex user %player% remove bedwars" execute console command "/pex user %player% remove factionsjoined" teleport player to {spawn} give player 1 nether star named "&aServer Selector" on quit: execute console command "/pex user %player% remove factionsjoined" execute console command "/pex user %player% remove bedwars" execute console command "/pex user %player% remove factionsjoined" teleport player to {spawn} command /mhub: trigger: execute player command "/lobby" command /setfactions: trigger: set {factions} to location send "&7done" command /setparkour: trigger: set {parkour} to location send "&7done" command /setbedwars: trigger: set {bedwars} to location send "&7done"