Class ApiMemberData.LevelData

java.lang.Object
com.reign.api.kat.models.ApiMemberData.LevelData
Enclosing class:
ApiMemberData

public static class ApiMemberData.LevelData extends Object
  • Field Details

    • xp

      public int xp
  • Constructor Details

    • LevelData

      public LevelData()
  • Method Details

    • addExperience

      public int addExperience(String messageContents, float multiplier)
      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.