# Init
scoreboard players set #ScoreFixer.Init ScoreFixer 1
execute unless score #ScoreFixer.ShowLoadMessage ScoreFixer matches 0 run scoreboard players set #ScoreFixer.ShowLoadMessage ScoreFixer 1

# Data Storages
execute unless data storage score_fixer:objectives List run data modify storage score_fixer:objectives List set value []
execute unless data storage score_fixer:zprivate Maps run data modify storage score_fixer:zprivate Maps set value []
data modify storage score_fixer:zprivate OnlinePlayers set value []
execute store result storage score_fixer:zprivate Version int 1 run scoreboard players get #ScoreFixer.Version load.status

# Tellraw
#tellraw @a ["",{text:"🔨 ScoreFixer >> ",color:"#E4B0F7"},"Installed ScoreFixer (v1.2.1)"]
#tellraw @a ["",{text:"🔨 ScoreFixer >> ",color:"#E4B0F7"},{text:"Click here",bold:true,color:"yellow",click_event:{action:"run_command",command:"/function score_fixer:settings/toggle_load_message"},hover_event:{action:"show_text",value:["/function score_fixer:settings/toggle_load_message"]}}," to toggle the load message"]
execute if score #ScoreFixer.ShowLoadMessage ScoreFixer matches 1 run tellraw @a ""
