From 19bdabea9eb590147160a020ca6614fffa85e9c4 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Mon, 13 Sep 2021 15:50:14 -0600 Subject: moved settings constructor call --- src/net/brysonsteck/Resurrection/Resurrection.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/net/brysonsteck') diff --git a/src/net/brysonsteck/Resurrection/Resurrection.java b/src/net/brysonsteck/Resurrection/Resurrection.java index d7ba391..cd40d02 100644 --- a/src/net/brysonsteck/Resurrection/Resurrection.java +++ b/src/net/brysonsteck/Resurrection/Resurrection.java @@ -66,8 +66,6 @@ public class Resurrection extends JavaPlugin implements Listener { System.out.println("[Resurrection] ---------------------------------------------------------"); - ParseSettings parseSettings = null; - System.out.println("[Resurrection] Locating player data and settings files..."); // check if playerData.resurrection exists File playerFile = new File("plugins/playerData.resurrection"); @@ -91,13 +89,14 @@ public class Resurrection extends JavaPlugin implements Listener { } if (!settingsFile.exists()) { System.out.println("[Resurrection] Settings file does not exist. Creating now in the \"plugins\" directory..."); - parseSettings = new ParseSettings(); + new ParseSettings(); System.out.println("[Resurrection] Settings file created successfully."); } else { System.out.println("[Resurrection] The settings file has also been found!"); - parseSettings = new ParseSettings(); } + ParseSettings parseSettings = new ParseSettings(); + System.out.println("[Resurrection] ---------------------------------------------------------"); if (parseSettings.isSettingsComplete() && !fileFail) { -- cgit v1.2.3