Timer when pomodoro ends
All checks were successful
/ build (push) Successful in 58s

This commit is contained in:
Minecon724 2024-12-31 15:35:36 +01:00
parent e409d3e4df
commit 1cc787230c
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
2 changed files with 1 additions and 3 deletions

View file

@ -6,7 +6,6 @@
package eu.m724.tweaks.pomodoro; package eu.m724.tweaks.pomodoro;
import eu.m724.tweaks.Language;
import eu.m724.tweaks.TweaksConfig; import eu.m724.tweaks.TweaksConfig;
import net.md_5.bungee.api.ChatMessageType; import net.md_5.bungee.api.ChatMessageType;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@ -38,7 +37,7 @@ public class PomodoroRunnable extends BukkitRunnable {
if (remaining < -60 && force) { if (remaining < -60 && force) {
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, () -> { plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, () -> {
pomodoro.next(); pomodoro.next();
player.kickPlayer(Language.getString("pomodoroEndKick") + "\n" + Pomodoros.formatTimer(pomodoro, pomodoro.getRemainingSeconds(now))); player.kickPlayer(Pomodoros.formatTimer(pomodoro, pomodoro.getRemainingSeconds(now)).toLegacyText());
}); });
} }
} }

View file

@ -11,7 +11,6 @@ language = English
languageEnglish = English languageEnglish = English
updateAvailableNotice = Available updates (%d): updateAvailableNotice = Available updates (%d):
pomodoroEndKick = Take a break!
# Used in /updates # Used in /updates
updatesNotChecked = Not checked yet updatesNotChecked = Not checked yet