Browse Source

better error reporting on enabling mcMMO

nossr50 6 years ago
parent
commit
b5b9a223a7
1 changed files with 3 additions and 7 deletions
  1. 3 7
      src/main/java/com/gmail/nossr50/mcMMO.java

+ 3 - 7
src/main/java/com/gmail/nossr50/mcMMO.java

@@ -193,13 +193,9 @@ public class mcMMO extends JavaPlugin {
         }
         }
         catch (Throwable t) {
         catch (Throwable t) {
             getLogger().severe("There was an error while enabling mcMMO!");
             getLogger().severe("There was an error while enabling mcMMO!");
-
-            if (!(t instanceof ExceptionInInitializerError)) {
-                t.printStackTrace();
-            }
-            else {
-                getLogger().info("Please do not replace the mcMMO jar while the server is running.");
-            }
+            t.printStackTrace();
+            getLogger().severe("End of error report for mcMMO");
+            getLogger().info("Please do not replace the mcMMO jar while the server is running.");
 
 
             getServer().getPluginManager().disablePlugin(this);
             getServer().getPluginManager().disablePlugin(this);
         }
         }