issue with detecting player count
ive been using some scores to detect player count and also to detect how many players alive. now it just suddenly stopped working. any help is appreciated
the code:
execute store result score #players count if entity @a[gamemode=survival] execute unless score playerCount playerCount matches 1 run execute if score #players count matches 1 run scoreboard players add @a[gamemode=survival] wins 1 execute unless score playerCount playerCount matches 1 run execute if score #players count matches 1 run scoreboard players add @a[gamemode=survival] wins 1 execute unless score playerCount playerCount matches 1 run execute if score #players count matches 1 run title @a title {"text":"Victory","color":"yellow"} execute unless score playerCount playerCount matches 1 run execute if score #players count matches 1 run title @a subtitle {"text":"","color":"yellow","extra":[{"selector":"@a[gamemode=survival]"},{"text":" has won the game!"}]} execute unless score playerCount playerCount matches 1 run execute if score #players count matches 1 run schedule function tntbedthing:reload 10s