aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-09-13 15:36:15 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-09-13 15:36:15 -0600
commit63d5c6dcb22388302f54e0905a500e82f39ab991 (patch)
treeffae55d69931c1d85b87f75f21c66b39cec3d873
parentdac7cd790d81fb9577e3227d583d4a9963556c2e (diff)
downloadresurrection-63d5c6dcb22388302f54e0905a500e82f39ab991.tar
resurrection-63d5c6dcb22388302f54e0905a500e82f39ab991.tar.gz
resurrection-63d5c6dcb22388302f54e0905a500e82f39ab991.tar.bz2
system exit calls break minecraft; fixed
-rw-r--r--out/artifacts/Resurrection_jar/Resurrection.jarbin1600652 -> 1600786 bytes
-rw-r--r--src/net/brysonsteck/Resurrection/startup/ParseSettings.java5
2 files changed, 3 insertions, 2 deletions
diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar
index ac448e8..e0f4134 100644
--- a/out/artifacts/Resurrection_jar/Resurrection.jar
+++ b/out/artifacts/Resurrection_jar/Resurrection.jar
Binary files differ
diff --git a/src/net/brysonsteck/Resurrection/startup/ParseSettings.java b/src/net/brysonsteck/Resurrection/startup/ParseSettings.java
index de0bb5d..450f750 100644
--- a/src/net/brysonsteck/Resurrection/startup/ParseSettings.java
+++ b/src/net/brysonsteck/Resurrection/startup/ParseSettings.java
@@ -1,5 +1,6 @@
package net.brysonsteck.Resurrection.startup;
+import net.brysonsteck.Resurrection.Resurrection;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
@@ -55,13 +56,13 @@ public class ParseSettings {
"[Resurrection] Example: \"debug=false\"");
}
System.out.println("[Resurrection] This file is crucial to Resurrection. Since the file is not complete, the plugin will now stop.");
- System.exit(1);
+ Bukkit.getPluginManager().disablePlugin(JavaPlugin.getProvidingPlugin(Resurrection.class));
}
} catch (IOException e) {
System.out.println("[Resurrection] There was an issue reading the Settings file:");
e.printStackTrace();
System.out.println("[Resurrection] This file is crucial to Resurrection. Since the file is not complete, the plugin will now stop.");
- System.exit(1);
+ Bukkit.getPluginManager().disablePlugin(JavaPlugin.getProvidingPlugin(Resurrection.class));
}
}