1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-20 02:33:15 +01:00

better error reporting on enabling mcMMO

This commit is contained in:
nossr50
2019-02-26 16:33:04 -08:00
parent 049b76f651
commit b5b9a223a7

View File

@@ -193,13 +193,9 @@ public class mcMMO extends JavaPlugin {
}
catch (Throwable t) {
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);
}