execute if score #immediate_respawn sgrave.rulesCheck matches 0 if score #notifications.immediate_respawn sgrave.settings matches 0 run tellraw @p [{text:"Immediate Respawn is now turned off.",color:"green"},{text:" Grave Limit",color:"gold"},{text:" is now active.",color:"green"}]
execute if score #immediate_respawn sgrave.rulesCheck matches 0 if score #notifications.immediate_respawn sgrave.settings matches 0 at @p run playsound block.note_block.pling master @p ~ ~ ~ 0.2 1
execute if score #immediate_respawn sgrave.rulesCheck matches 0 if score #notifications.immediate_respawn sgrave.settings matches 0 run scoreboard players set #notifications.immediate_respawn sgrave.settings 1

execute if score #immediate_respawn sgrave.rulesCheck matches 1 if score #notifications.immediate_respawn sgrave.settings matches 1 run tellraw @p [{text:"Immediate Respawn is now turned on.",color:"red"},{text:" Grave Limit",color:"gold"},{text:" has been automatically disabled for safety.",color:"red"}]
execute if score #immediate_respawn sgrave.rulesCheck matches 1 if score #notifications.immediate_respawn sgrave.settings matches 1 at @p run playsound block.note_block.pling master @p ~ ~ ~ 0.2 1
execute if score #immediate_respawn sgrave.rulesCheck matches 1 if score #notifications.immediate_respawn sgrave.settings matches 1 run scoreboard players set #notifications.immediate_respawn sgrave.settings 0