From f07b8fa17fb3126815d132cf19947168976cf91c Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Sat, 3 Mar 2018 16:38:53 +0200 Subject: [PATCH] Swapped error and information messages around --- Plan/src/main/java/com/djrapitops/plan/Plan.java | 4 ++-- Plan/src/main/java/com/djrapitops/plan/PlanBungee.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/Plan.java b/Plan/src/main/java/com/djrapitops/plan/Plan.java index bf2187e5b..c9b08c7e6 100644 --- a/Plan/src/main/java/com/djrapitops/plan/Plan.java +++ b/Plan/src/main/java/com/djrapitops/plan/Plan.java @@ -83,15 +83,15 @@ public class Plan extends BukkitPlugin implements PlanPlugin { } catch (AbstractMethodError e) { Log.error("Plugin ran into AbstractMethodError - Server restart is required. Likely cause is updating the jar without a restart."); } catch (EnableException e) { - Log.error("Plugin Failed to Initialize Correctly. If this issue is caused by config settings you can use /plan reload"); Log.error("----------------------------------------"); Log.error("Error: " + e.getMessage()); Log.error("----------------------------------------"); + Log.error("Plugin Failed to Initialize Correctly. If this issue is caused by config settings you can use /plan reload"); onDisable(); } catch (Exception e) { + Logger.getGlobal().log(Level.SEVERE, this.getClass().getSimpleName() + "-v" + getVersion(), e); Log.error("Plugin Failed to Initialize Correctly. If this issue is caused by config settings you can use /plan reload"); Log.error("This error should be reported at https://github.com/Rsl1122/Plan-PlayerAnalytics/issues"); - Logger.getGlobal().log(Level.SEVERE, this.getClass().getSimpleName() + "-v" + getVersion(), e); onDisable(); } registerCommand("plan", new PlanCommand(this)); diff --git a/Plan/src/main/java/com/djrapitops/plan/PlanBungee.java b/Plan/src/main/java/com/djrapitops/plan/PlanBungee.java index c0a65ee1b..5d46c9e87 100644 --- a/Plan/src/main/java/com/djrapitops/plan/PlanBungee.java +++ b/Plan/src/main/java/com/djrapitops/plan/PlanBungee.java @@ -45,15 +45,15 @@ public class PlanBungee extends BungeePlugin implements PlanPlugin { } catch (AbstractMethodError e) { Log.error("Plugin ran into AbstractMethodError - Server restart is required. Likely cause is updating the jar without a restart."); } catch (EnableException e) { - Log.error("Plugin Failed to Initialize Correctly. If this issue is caused by config settings you can use /planbungee reload"); Log.error("----------------------------------------"); Log.error("Error: " + e.getMessage()); Log.error("----------------------------------------"); + Log.error("Plugin Failed to Initialize Correctly. If this issue is caused by config settings you can use /planbungee reload"); onDisable(); } catch (Exception e) { + Logger.getGlobal().log(Level.SEVERE, this.getClass().getSimpleName() + "-v" + getVersion(), e); Log.error("Plugin Failed to Initialize Correctly. If this issue is caused by config settings you can use /planbungee reload"); Log.error("This error should be reported at https://github.com/Rsl1122/Plan-PlayerAnalytics/issues"); - Logger.getGlobal().log(Level.SEVERE, this.getClass().getSimpleName() + "-v" + getVersion(), e); onDisable(); } registerCommand("planbungee", new PlanBungeeCommand(this));