PlayerSkillSelection

Manages player skill selections.

Each player can select up to 3 active skills per weapon type. Selections are persisted to the database as JSON.

Properties

Link copied to clipboard
public final static int MAX_ACTIVE_SKILLS

Functions

Link copied to clipboard
public static boolean addActiveSkill(UUID uuid, SkillType skillType, String skillId)
Adds a skill to a player's active skills.
public static boolean addActiveSkill(UUID uuid, SkillType skillType, String skillId, boolean bypassLimit)
Adds a skill to a player's active skills with optional limit bypass.
Link copied to clipboard
public static boolean canAddSkill(UUID uuid, SkillType skillType)
Link copied to clipboard
public static void clearAllSkills(UUID uuid)
Link copied to clipboard
public static void clearCache(UUID uuid)
Link copied to clipboard
public static int getActiveSkillCount(UUID uuid, SkillType skillType)
Link copied to clipboard
public static List<String> getActiveSkills(UUID uuid, SkillType skillType)
Gets the active skill IDs for a player and skill type.
Link copied to clipboard
public static List<String> getAllActiveSkills(UUID uuid)
Returns a snapshot of all active skill identifiers across skill types.
Link copied to clipboard
public static boolean isSkillActive(UUID uuid, String skillId)
Checks whether a skill is active for a player.
Link copied to clipboard
public static void loadFromDatabase(UUID uuid)
Loads skill selections from the database for a player.
Link copied to clipboard
public static void onPlayerJoin(Player player)
Called when a player joins to load their selections.
Link copied to clipboard
public static void onPlayerLeave(Player player)
Called when a player leaves to save their selections.
Link copied to clipboard
public static boolean removeActiveSkill(UUID uuid, SkillType skillType, String skillId)
Removes a skill from a player's active skills.
Link copied to clipboard
public static void saveToDatabase(UUID uuid)
Saves skill selections to the database for a player.
Link copied to clipboard
public static void shutdown()
Clears all cached selections.