scoreboard players tag @e[type=item] add InitDontWantToPlay {Item:{id:"minecraft:dye",tag:{display:{Name:"§a§lReady to play§r §6§o(drop to switch)"}}}}
execute @e[type=item,tag=InitDontWantToPlay] ~ ~-1 ~ scoreboard players tag @a[r=2,c=1] remove Lobby
execute @e[type=item,tag=InitDontWantToPlay] ~ ~-1 ~ scoreboard players tag @a[r=2,c=1] add InitLobbyAFK
kill @e[type=item,tag=InitDontWantToPlay]

scoreboard players tag @a[tag=InitLobbyAFK] add LobbyAFK
title @a[tag=InitLobbyAFK] actionbar ["",{"text":"You are ","bold":true,"color":"aqua"},{"text":"Not ready to play","bold":true,"color":"red"},{"text":". You are not going to play.","bold":true,"color":"aqua"}]
replaceitem entity @a[tag=InitLobbyAFK] slot.hotbar.8 minecraft:dye 1 8 {display:{Name:"§c§lNot ready to play§r §6§o(drop to switch)"}}
stopsound @a[tag=InitLobby] master minecraft:entity.villager.yes
execute @a[tag=InitLobbyAFK] ~ ~ ~ playsound minecraft:entity.villager.no ambient @s
function main:scoreboard/lobby if @a[tag=InitLobbyAFK]
scoreboard players tag @a[tag=InitLobbyAFK] remove InitLobbyAFK