Skip to content

Cooldowns don't expire #13

@JorenCombs

Description

@JorenCombs

Was playing around with current MultiHome jar and noticed that, if cooldown is used, after the player has an entry in the cooldown flatfile, the counter will count down to 1 and stay there. They will never be able to /home again.

This appears to be because the CoolDownManager's removeCooldown method is never called, and therefore when MultiHomeCommands checks to see if a player has a cooldown, it will always get one even if the cooldown already expired. As long as the getCooldown does not return null, then the player cannot /home.

-- Joren

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions