I am trying to make a leveling system for KitPvP based off of the players xp bar level, but for some reason when I type in chat, it says "<none>" instead of my level.
Code:
on death:
damager is in world "KitPvP"
make console execute command "xp 1 %damager%"
on chat:
player is in world "KitPvP"
cancel event
broadcast "%{level::%player%}% %player's display name%: %message%" to the player's world