DungeonBossLockout

public class DungeonBossLockout implements Serializable

Tracks boss kill lockouts for dungeon content. Bosses are identified by filename + spawn location (world stripped). Lockouts expire after the configured duration.

Constructors

Link copied to clipboard
public void DungeonBossLockout()

Properties

Link copied to clipboard
public final Map<String, Long> lockouts

Functions

Link copied to clipboard
public void addLockout(String bossIdentifier, int lockoutMinutes)
Adds a lockout for a boss kill.
Link copied to clipboard
public void cleanupExpiredLockouts()
Cleans up expired lockouts from the map.
Link copied to clipboard
public int clearLockouts()
Clears every boss lockout for this player.
Link copied to clipboard
public static String createBossIdentifier(String filename, String spawnLocation)
Creates a unique identifier for a boss based on filename and spawn location.
Link copied to clipboard
public String getFormattedRemainingTime(String bossIdentifier)
Formats the remaining lockout time as a human-readable string.
Link copied to clipboard
public Map<String, Long> getLockouts()
Link copied to clipboard
public long getRemainingLockoutMillis(String bossIdentifier)
Gets the remaining lockout time in milliseconds.
Link copied to clipboard
public boolean isLockedOut(String bossIdentifier)
Checks if a boss is currently locked out.
Link copied to clipboard
public boolean removeLockout(String bossIdentifier)
Removes a single boss lockout.