From a82df209947fdf07b6a3989ad95c5d81269871db Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Thu, 10 Mar 2022 19:45:45 -0500 Subject: [PATCH] Format actions timers, fixes #1832 --- .../main/java/me/blackvein/quests/actions/Action.java | 9 +++++---- .../main/java/me/blackvein/quests/tasks/ActionTimer.java | 3 ++- core/src/main/resources/strings.yml | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/core/src/main/java/me/blackvein/quests/actions/Action.java b/core/src/main/java/me/blackvein/quests/actions/Action.java index 586a189bc..512a790bf 100644 --- a/core/src/main/java/me/blackvein/quests/actions/Action.java +++ b/core/src/main/java/me/blackvein/quests/actions/Action.java @@ -11,14 +11,15 @@ */ package me.blackvein.quests.actions; -import me.blackvein.quests.quests.IQuest; -import me.blackvein.quests.player.IQuester; import me.blackvein.quests.Quests; import me.blackvein.quests.entity.QuestMob; +import me.blackvein.quests.player.IQuester; +import me.blackvein.quests.quests.IQuest; import me.blackvein.quests.tasks.ActionTimer; import me.blackvein.quests.util.ConfigUtil; import me.blackvein.quests.util.InventoryUtil; import me.blackvein.quests.util.Lang; +import me.blackvein.quests.util.MiscUtil; import org.bukkit.ChatColor; import org.bukkit.Effect; import org.bukkit.Location; @@ -394,7 +395,7 @@ public class Action implements IAction { } if (teleport != null) { if (player.isDead()) { - plugin.getLogger().warning("Tried to fire IAction " + name + " but player " + player.getUniqueId() + plugin.getLogger().warning("Tried to fire Action " + name + " but player " + player.getUniqueId() + " was dead (known Bukkit limitation)."); } else { player.teleport(teleport); @@ -415,7 +416,7 @@ public class Action implements IAction { } if (timer > 0) { player.sendMessage(ChatColor.GREEN + Lang.get(player, "timerStart") - .replace("