function pctf:cosmetics/kill_messages/page/return
execute unless entity @s[tag=c_km_medieval] unless score @s credits matches 60.. run return run tellraw @s {"text":"You don't have enough Credits!","color":"red"}

execute if entity @s[tag=c_km_medieval] run scoreboard players set @s km_num 13
function pctf:cosmetics/kill_messages/page/return
execute if entity @s[tag=c_km_medieval] run return run tellraw @s {"text":"You selected Medieval!","color":"aqua"}

scoreboard players remove @s credits 60
tag @s add c_km_medieval
function pctf:cosmetics/kill_messages/page/return
tellraw @s {"text":"You purchased Medieval!","color":"green"}
playsound minecraft:entity.player.levelup player @s ~ ~ ~ 1 1.25
function pctf:music/jingle/play
particle minecraft:happy_villager ~ ~ ~ 2 2 2 0 250 force @s