QuestLockout

public class QuestLockout implements Serializable

Tracks quest completion lockouts for players. Quests are identified by their filename. Lockouts expire after the configured duration.

Constructors

Link copied to clipboard
public void QuestLockout()

Properties

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

Functions

Link copied to clipboard
public void addLockout(String questFilename, int lockoutMinutes)
Adds a lockout for a quest completion.
Link copied to clipboard
public void cleanupExpiredLockouts()
Cleans up expired lockouts from the map.
Link copied to clipboard
public String getFormattedRemainingTime(String questFilename)
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 questFilename)
Gets the remaining lockout time in milliseconds.
Link copied to clipboard
public boolean isLockedOut(String questFilename)
Checks if a quest is currently locked out.