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