Package com.reign.api.kat.models
Class ApiMemberData.LevelData
java.lang.Object
com.reign.api.kat.models.ApiMemberData.LevelData
- Enclosing class:
- ApiMemberData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
addExperience
(String messageContents, float multiplier) Add experience to the user.int
level()
Calculates the level boundary of the current xp
-
Field Details
-
xp
public int xp
-
-
Constructor Details
-
LevelData
public LevelData()
-
-
Method Details
-
addExperience
Add experience to the user. We calculate experience based on the length of the User's message.- Parameters:
messageContents
- String contents of the message.- Returns:
- Integer - Amount of xp added.
-
level
public int level()Calculates the level boundary of the current xp- Returns:
- Current level of the xp.
-