
# -> If player is not operator then return and reset trigger
execute unless entity @s[tag=OverlyRealistic.Player.IsOperator] \
    if score @s OverlyRealistic.Player.OrTriggers matches ..99999 run \
        return run \
            scoreboard players reset @s OverlyRealistic.Player.OrTriggers

# -> Save trigger value
execute store result storage overly_realistic:general trigger_value int 1 run \
    scoreboard players get @s OverlyRealistic.Player.OrTriggers

# -> Do trigger value function
function overly_realistic:main/settings/player/execute_trigger_value with storage overly_realistic:general

# -> Reset trigger
scoreboard players reset @s OverlyRealistic.Player.OrTriggers
