From 661222bd3681d65178933892c7fe688b2bcff8e3 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sat, 1 Jan 2022 22:46:37 -0700 Subject: cleaning up some things --- src/net/brysonsteck/Resurrection/startup/ParseSettings.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/brysonsteck/Resurrection/startup/ParseSettings.java') 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 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; -- cgit v1.2.3