scoreboard players add barrel_refill option 1
execute if score barrel_refill option matches 2.. run scoreboard players set barrel_refill option 0

execute at @s if score barrel_refill option matches 0 run function subchronos:lobby/options/barrel_refill/off
execute at @s if score barrel_refill option matches 1 run function subchronos:lobby/options/barrel_refill/on