aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-09-13 15:50:14 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-09-13 15:50:14 -0600
commit19bdabea9eb590147160a020ca6614fffa85e9c4 (patch)
tree27e97aee85540a2ada4e7751f42056f489278daa
parent9e1a8fc7e9d2c7aff2d90487cbe29baeec3d340e (diff)
downloadresurrection-19bdabea9eb590147160a020ca6614fffa85e9c4.tar
resurrection-19bdabea9eb590147160a020ca6614fffa85e9c4.tar.gz
resurrection-19bdabea9eb590147160a020ca6614fffa85e9c4.tar.bz2
moved settings constructor call
-rw-r--r--out/artifacts/Resurrection_jar/Resurrection.jarbin1600894 -> 1600893 bytes
-rw-r--r--src/net/brysonsteck/Resurrection/Resurrection.java7
2 files changed, 3 insertions, 4 deletions
diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar
index 8e2bc89..1e3e78d 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/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) {