Class TeamLevel
java.lang.Object
com.booksaw.betterTeams.team.level.TeamLevel
Represents a specific level of a team.
This object holds all configuration data for a level.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the lore with translated color codes.doubleintgetLevel()intdoubleintintintgetPrice()The raw price string from config (e.g., "100s" for score, "500m" for money).intbooleanChecks if the cost is in 'Money' (Vault economy).booleanChecks if the cost is in 'Score' points.
-
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 newTeamLevelinstance.- 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
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
The raw price string from config (e.g., "100s" for score, "500m" for money).- See Also:
-
getStartCommands
-
getEndCommands
-
getRankLore
-