From 1cc787230cce389f6c6a4b0410c386532bf84785 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Tue, 31 Dec 2024 15:35:36 +0100 Subject: [PATCH] Timer when pomodoro ends --- src/main/java/eu/m724/tweaks/pomodoro/PomodoroRunnable.java | 3 +-- src/main/resources/strings.properties | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/eu/m724/tweaks/pomodoro/PomodoroRunnable.java b/src/main/java/eu/m724/tweaks/pomodoro/PomodoroRunnable.java index c88b920..3f28def 100644 --- a/src/main/java/eu/m724/tweaks/pomodoro/PomodoroRunnable.java +++ b/src/main/java/eu/m724/tweaks/pomodoro/PomodoroRunnable.java @@ -6,7 +6,6 @@ package eu.m724.tweaks.pomodoro; -import eu.m724.tweaks.Language; import eu.m724.tweaks.TweaksConfig; import net.md_5.bungee.api.ChatMessageType; import org.bukkit.Bukkit; @@ -38,7 +37,7 @@ public class PomodoroRunnable extends BukkitRunnable { if (remaining < -60 && force) { plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, () -> { pomodoro.next(); - player.kickPlayer(Language.getString("pomodoroEndKick") + "\n" + Pomodoros.formatTimer(pomodoro, pomodoro.getRemainingSeconds(now))); + player.kickPlayer(Pomodoros.formatTimer(pomodoro, pomodoro.getRemainingSeconds(now)).toLegacyText()); }); } } diff --git a/src/main/resources/strings.properties b/src/main/resources/strings.properties index b4aa0e0..2be019e 100644 --- a/src/main/resources/strings.properties +++ b/src/main/resources/strings.properties @@ -11,7 +11,6 @@ language = English languageEnglish = English updateAvailableNotice = Available updates (%d): -pomodoroEndKick = Take a break! # Used in /updates updatesNotChecked = Not checked yet