scoreboard players tag @a[tag=Lobby] add TestItem
scoreboard players tag @a[tag=LobbyAFK] add TestItem
execute @a[tag=LobbySpectate] ~ ~ ~ execute @s[tag=!LobbyAFKBar] ~ ~ ~ execute @s[tag=!LobbyAFKHowToPlay] ~ ~ ~ scoreboard players tag @s[tag=!LobbyAFKTesterRoom] add TestItem
scoreboard players tag @a[tag=TestItem] remove TestItem {Inventory:[{Slot:8b,id:"minecraft:dye"}]}
clear @a[tag=TestItem] minecraft:dye
execute @a[tag=TestItem] ~ ~ ~ replaceitem entity @s[tag=Lobby] slot.hotbar.8 minecraft:dye 1 10 {display:{Name:"§a§lReady to play§r §6§o(drop to switch)"}}
execute @a[tag=TestItem] ~ ~ ~ replaceitem entity @s[tag=LobbyAFK] slot.hotbar.8 minecraft:dye 1 8 {display:{Name:"§c§lNot ready to play§r §6§o(drop to switch)"}}
execute @a[tag=TestItem] ~ ~ ~ replaceitem entity @s[tag=LobbySpectate] slot.hotbar.8 minecraft:dye 1 12 {display:{Name:"§b§lSpectator §6§o(drop to disable)"}}