LevelProgress
Snapshot of a player's progress on a level track. The maximum level and experience requirements are the ones that apply to this player now, so they may differ between players on the same track.
Values are read together and may be stale right after a write, so don't cache them. Progress objects are equal if all their values are equal.
Create it with the builder:
LevelProgress.level(5).minLevel(1).build();
LevelProgress.level(5).minLevel(0).maxLevel(99).exp(10.0).expToNextLevel(100.0).build();Since
0.10.0
Types
Builder of LevelProgress, use LevelProgress.level to create it.
Properties
Total experience required for the step from the current level to the next one, not the remaining part. 0.0 if the next level is free, -1 if the requirement is unknown or the level is maximal. See hasExpToNextLevel.
The highest level the player can reach on the track, -1 if the level is unlimited. See hasMaxLevel. It may depend on the player, for example on their permissions or class.