Class TeamLevel

java.lang.Object
com.booksaw.betterTeams.team.level.TeamLevel

public class TeamLevel extends Object
Represents a specific level of a team. This object holds all configuration data for a level.
  • Constructor Details

    • TeamLevel

      public TeamLevel(int level, int teamLimit, int maxChests, int maxWarps, double maxBalance, int maxAdmins, int maxOwners, String price, List<String> startCommands, List<String> endCommands, List<String> rankLore)
      Creates a new TeamLevel instance.
      Parameters:
      level -
      teamLimit -
      maxChests -
      maxWarps -
      maxBalance -
      maxAdmins -
      maxOwners -
      price - The raw price string from config (e.g., "100s" for score, "500m" for money).
      startCommands -
      endCommands -
      rankLore -
      See Also:
  • Method Details

    • getCostValue

      public double getCostValue()
    • isScoreCost

      public boolean isScoreCost()
      Checks if the cost is in 'Score' points.
      Returns:
      true if price ends with 's'.
    • isMoneyCost

      public boolean isMoneyCost()
      Checks if the cost is in 'Money' (Vault economy).
      Returns:
      true if price ends with 'm'.
    • getColoredLore

      public List<String> getColoredLore()
      Returns the lore with translated color codes.
      Returns:
      List of colored strings.
    • getLevel

      public int getLevel()
    • getTeamLimit

      public int getTeamLimit()
    • getMaxChests

      public int getMaxChests()
    • getMaxWarps

      public int getMaxWarps()
    • getMaxBalance

      public double getMaxBalance()
    • getMaxAdmins

      public int getMaxAdmins()
    • getMaxOwners

      public int getMaxOwners()
    • getPrice

      public String getPrice()
      The raw price string from config (e.g., "100s" for score, "500m" for money).
      See Also:
    • getStartCommands

      public List<String> getStartCommands()
    • getEndCommands

      public List<String> getEndCommands()
    • getRankLore

      public List<String> getRankLore()