CombatLevelCalculator

Calculates a player's combat level.

Combat level is the average of: - The two highest weapon skill levels - The armor skill level

Functions

Link copied to clipboard
public static int calculateCombatLevel(UUID playerUUID)
Calculates the combat level for a player.
Link copied to clipboard
public static String getFormattedCombatLevel(UUID playerUUID)
Gets a formatted string for displaying combat level.
Link copied to clipboard
public static int highestOnlineCombatLevel()
Both global placeholders share this result until a relevant value changes.
Link copied to clipboard
public static void invalidateOnlineCombatLevel()
Called by the player-data owner whenever skills or the online population change.