Levels

/**
 * Retrieves the level amount of a specific level for a player.
 *
 * @param uuid The UUID of the player.
 * @param level The name of the level.
 * @return The level of the aspect for the player.
 */
public double getLevel(UUID uuid, String level) {
    // Method implementation
}

/**
 * Sets the level of a specific level for a player.
 *
 * @param uuid The UUID of the player.
 * @param level The name of the level.
 * @param value The new level of the aspect.
 */
public void setLevel(UUID uuid, String level, double value) {
    // Method implementation
}

/**
 * Adds levels to a specific level for a player.
 *
 * @param uuid The UUID of the player.
 * @param level The name of the aspect.
 * @param value The number of levels to add.
 */
public void addLevels(UUID uuid, String level, double value) {
    // Method implementation
}

/**
 * Removes levels from a specific level for a player.
 *
 * @param uuid The UUID of the player.
 * @param level The name of the level.
 * @param value The number of levels to remove.
 */
public void removeLevels(UUID uuid, String level, double value) {
    // Method implementation
}

/**
 * Calculates the cost of a certain number of levels for a specific level.
 *
 * @param uuid The UUID of the player.
 * @param level The name of the level.
 * @param levels The number of levels.
 * @return The cost of the levels.
 */
public double getCostOfLevels(UUID uuid, String level, double levels) {
    // Method implementation
}

/**
 * Buy levels as a player for a specific level.
 *
 * @param p The player who is buying levels.
 * @param level The name of the level.
 * @param levels The number of levels to buy.
 */
public void buyLevelsAsPlayer(Player p, String level, double levels) {
    // Method implementation
}

/**
 * Retrieves the maximum number of levels affordable for a specific level by a player.
 *
 * @param uuid The UUID of the player.
 * @param level The name of the level.
 * @return The maximum levels affordable.
 */
public double getMaxLevelsAffordable(UUID uuid, String level) {
    // Method implementation
}

Last updated