diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2022-01-01 22:46:37 -0700 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2022-01-01 22:46:37 -0700 |
commit | 661222bd3681d65178933892c7fe688b2bcff8e3 (patch) | |
tree | fe1275da92fee29a88f79645a431851257945d27 /src/net/brysonsteck/Resurrection/startup | |
parent | 95166d5f10abec2fe6bd098f70316660fa1b775e (diff) | |
download | resurrection-661222bd3681d65178933892c7fe688b2bcff8e3.tar resurrection-661222bd3681d65178933892c7fe688b2bcff8e3.tar.gz resurrection-661222bd3681d65178933892c7fe688b2bcff8e3.tar.bz2 |
cleaning up some things
Diffstat (limited to 'src/net/brysonsteck/Resurrection/startup')
-rw-r--r-- | src/net/brysonsteck/Resurrection/startup/ParseSettings.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/brysonsteck/Resurrection/startup/ParseSettings.java b/src/net/brysonsteck/Resurrection/startup/ParseSettings.java index d76b657..75d24a6 100644 --- a/src/net/brysonsteck/Resurrection/startup/ParseSettings.java +++ b/src/net/brysonsteck/Resurrection/startup/ParseSettings.java @@ -6,7 +6,6 @@ import org.bukkit.plugin.java.JavaPlugin; import java.io.*; import java.util.Hashtable; -import java.util.Locale; public class ParseSettings { Hashtable<String, String> settings = new Hashtable<>(); @@ -42,6 +41,7 @@ public class ParseSettings { settings.put(setting[0], setting[1]); } } + reader.close(); if (!verifySettings()) { System.out.println("[Resurrection] There is a syntax issue inside the Settings file:"); if (!settingsComplete) { @@ -81,7 +81,7 @@ public class ParseSettings { // is resurrection_time a long? try { - long time = Long.parseLong(settings.get("resurrection_time")); + Long.parseLong(settings.get("resurrection_time")); } catch (NumberFormatException | NullPointerException e) { failedSetting = "resurrection_time"; return false; |