From 63d5c6dcb22388302f54e0905a500e82f39ab991 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Mon, 13 Sep 2021 15:36:15 -0600 Subject: system exit calls break minecraft; fixed --- src/net/brysonsteck/Resurrection/startup/ParseSettings.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/net/brysonsteck/Resurrection') 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)); } } -- cgit v1.2.3