diff --git a/pom.xml b/pom.xml
index 7205fc8..a5bf495 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
com.loohp
Limbo
Limbo
- 0.7.1-ALPHA
+ 0.7.2-ALPHA
Standalone Limbo Minecraft Server.
https://github.com/LOOHP/Limbo
diff --git a/src/main/java/com/loohp/limbo/Limbo.java b/src/main/java/com/loohp/limbo/Limbo.java
index af422ef..1f4192f 100644
--- a/src/main/java/com/loohp/limbo/Limbo.java
+++ b/src/main/java/com/loohp/limbo/Limbo.java
@@ -338,8 +338,12 @@ public final class Limbo {
}
for (LimboPlugin plugin : Limbo.getInstance().getPluginManager().getPlugins()) {
- console.sendMessage("Enabling plugin " + plugin.getName() + " " + plugin.getInfo().getVersion());
- plugin.onEnable();
+ try {
+ console.sendMessage("Enabling plugin " + plugin.getName() + " " + plugin.getInfo().getVersion());
+ plugin.onEnable();
+ } catch (Throwable e) {
+ new RuntimeException("Error while enabling " + plugin.getName() + " " + plugin.getInfo().getVersion(), e).printStackTrace();
+ }
}
server = new ServerConnection(properties.getServerIp(), properties.getServerPort());
@@ -553,8 +557,12 @@ public final class Limbo {
console.sendMessage("Stopping Server...");
for (LimboPlugin plugin : Limbo.getInstance().getPluginManager().getPlugins()) {
- console.sendMessage("Disabling plugin " + plugin.getName() + " " + plugin.getInfo().getVersion());
- plugin.onDisable();
+ try {
+ console.sendMessage("Disabling plugin " + plugin.getName() + " " + plugin.getInfo().getVersion());
+ plugin.onDisable();
+ } catch (Throwable e) {
+ new RuntimeException("Error while disabling " + plugin.getName() + " " + plugin.getInfo().getVersion(), e).printStackTrace();
+ }
}
tick.waitAndKillThreads(5000);