mirror of
https://github.com/SimplexDevelopment/FeelingLucky.git
synced 2025-07-12 08:08:34 +00:00
[Beta] SNAPSHOT {Bug Fix} - Patch 0001
Changelog: - Fixed an issue where the integrity checker for the main config would delete the entire data folder if the config was corrupted. - Fixed an issue where the Rarity check was not working as intended; it would either return false if any Rarity other than NONE was set, and throw a new IllegalArgumentException if the switch clause exited with no return value. - Fixed an issue where the command /luck reload -m did absolutely nothing. - Fixed an issue where the proper command arguments were not being Tab Completed.
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
package io.github.simplex.luck.util;
|
||||
|
||||
import io.github.simplex.lib.MiniComponent;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.HashMap;
|
||||
@ -10,9 +8,8 @@ import java.util.UUID;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class CooldownTimer {
|
||||
private final Map<UUID, Long> cooldowns = new HashMap<>();
|
||||
|
||||
public static final long DEFAULT_COOLDOWN = 30L;
|
||||
private final Map<UUID, Long> cooldowns = new HashMap<>();
|
||||
|
||||
public void setCooldown(UUID playerUUID, long time) {
|
||||
if (time < 1) {
|
||||
|
Reference in New Issue
Block a user