execute store success score #xrpg_upgrade xrpg_op run scoreboard players add @s[scores={xrpg_class_level=..9}] xrpg_class_level 1
execute if score #xrpg_upgrade xrpg_op matches 1 run scoreboard players remove @s xrpg_skill_points 10

execute at @s run playsound minecraft:ui.button.click player @s ~ ~ ~ 0.25 1