ExperienceUtils
Methods
getLevelFromXp()
php
public static function getLevelFromXp(int $xp) : floatCalculates and returns the number of XP levels the specified amount of XP points are worth. This returns a floating-point number, the decimal part being the progress through the resulting level.
getXpToCompleteLevel()
php
public static function getXpToCompleteLevel(int $level) : intReturns the amount of XP needed to reach $level + 1.
getXpToReachLevel()
php
public static function getXpToReachLevel(int $level) : intCalculates and returns the amount of XP needed to get from level 0 to level $level
