Don't show the 1 minute grace period if forced
All checks were successful
/ deploy (push) Successful in 4m44s
All checks were successful
/ deploy (push) Successful in 4m44s
This commit is contained in:
parent
d55afa26ea
commit
b53dfd096d
1 changed files with 1 additions and 10 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
package eu.m724.tweaks.pomodoro;
|
||||
|
||||
import eu.m724.tweaks.TweaksConfig;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import net.md_5.bungee.api.chat.BaseComponent;
|
||||
import net.md_5.bungee.api.chat.ComponentBuilder;
|
||||
|
@ -17,8 +16,6 @@ import java.util.Map;
|
|||
import java.util.UUID;
|
||||
|
||||
public class Pomodoros {
|
||||
private static final boolean force = TweaksConfig.getConfig().pomodoroForce();
|
||||
|
||||
static final Map<UUID, PlayerPomodoro> timers = new HashMap<>();
|
||||
|
||||
public static PlayerPomodoro get(Player player) {
|
||||
|
@ -51,14 +48,8 @@ public class Pomodoros {
|
|||
.append("%02d:%02d".formatted(remaining / 60, remaining % 60))
|
||||
.color(ChatColor.GRAY);
|
||||
} else {
|
||||
// TODO I think it's bad to put this here
|
||||
if (force) {
|
||||
remaining += 60;
|
||||
} else {
|
||||
remaining = 0;
|
||||
}
|
||||
builder
|
||||
.append("%02d:%02d".formatted(remaining / 60, remaining % 60))
|
||||
.append("00:00")
|
||||
.color(remaining % 2 == 0 ? ChatColor.RED : ChatColor.YELLOW);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue