From ESOUI Wiki
This function returns the maximum level that a player-character can reach. Once a character reaches this level, the Champion system is unlocked.
if GetUnitLevel("player") < GetMaxLevel() then d("You've got a ways to go. Keep at it!") else d("You're at the maximum level. Well done!") end