From 46d0e7b5aaabf613e6387228727d313ac8ddb0cf Mon Sep 17 00:00:00 2001 From: Krakenied Date: Wed, 22 May 2024 15:19:52 +0200 Subject: Do not log the entire boss bar exception Closes https://github.com/LMBishop/Quests/issues/659 Closes https://github.com/LMBishop/Quests/issues/637 --- .../com/leonardobishop/quests/bukkit/hook/bossbar/BossBar_Bukkit.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bukkit/src') diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/bossbar/BossBar_Bukkit.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/bossbar/BossBar_Bukkit.java index 1cb1c27d..7645cfe6 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/bossbar/BossBar_Bukkit.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/bossbar/BossBar_Bukkit.java @@ -121,7 +121,9 @@ public class BossBar_Bukkit implements QuestsBossBar { throw new IllegalStateException(type + " section is empty"); } } catch (IllegalArgumentException | IllegalStateException e) { - plugin.getLogger().log(Level.SEVERE, "Could not set " + type + " for the initialized boss bar implementation, using default instead!", e); + plugin.getLogger().log(Level.SEVERE, "Could not set " + type + " for the initialized boss bar implementation, using default instead!"); + plugin.getLogger().log(Level.SEVERE, "Update your config to latest version! (" + e.getMessage() + ")"); + plugin.getLogger().log(Level.SEVERE, "https://github.com/LMBishop/Quests/blob/master/bukkit/src/main/resources/resources/bukkit/config.yml"); map = Collections.singletonMap(0.0f, def); } return map; -- cgit v1.2.3-70-g09d2