This commit is contained in:
parent
e409d3e4df
commit
1cc787230c
2 changed files with 1 additions and 3 deletions
|
@ -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());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue