mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Making the error reporting for enabling mcMMO more informative.
This commit is contained in:
parent
d2035f1816
commit
1d316f9420
@ -143,7 +143,15 @@ public class mcMMO extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Throwable t) {
|
catch (Throwable t) {
|
||||||
getLogger().severe("There was an error while enabling mcMMO! Disabling now");
|
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.");
|
||||||
|
}
|
||||||
|
|
||||||
Bukkit.getPluginManager().disablePlugin(this);
|
Bukkit.getPluginManager().disablePlugin(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -238,7 +246,8 @@ public class mcMMO extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
catch (Throwable e) {
|
catch (Throwable e) {
|
||||||
if (e instanceof NoClassDefFoundError) {
|
if (e instanceof NoClassDefFoundError) {
|
||||||
getLogger().severe("Backup class not found. Do not replace the mcMMO jar during runtime.");
|
getLogger().severe("Backup class not found!");
|
||||||
|
getLogger().info("Please do not replace the mcMMO jar while the server is running.");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
getLogger().severe(e.toString());
|
getLogger().severe(e.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user