moved settings constructor call
This commit is contained in:
parent
9e1a8fc7e9
commit
19bdabea9e
2 changed files with 3 additions and 4 deletions
Binary file not shown.
|
@ -66,8 +66,6 @@ public class Resurrection extends JavaPlugin implements Listener {
|
||||||
|
|
||||||
System.out.println("[Resurrection] ---------------------------------------------------------");
|
System.out.println("[Resurrection] ---------------------------------------------------------");
|
||||||
|
|
||||||
ParseSettings parseSettings = null;
|
|
||||||
|
|
||||||
System.out.println("[Resurrection] Locating player data and settings files...");
|
System.out.println("[Resurrection] Locating player data and settings files...");
|
||||||
// check if playerData.resurrection exists
|
// check if playerData.resurrection exists
|
||||||
File playerFile = new File("plugins/playerData.resurrection");
|
File playerFile = new File("plugins/playerData.resurrection");
|
||||||
|
@ -91,13 +89,14 @@ public class Resurrection extends JavaPlugin implements Listener {
|
||||||
}
|
}
|
||||||
if (!settingsFile.exists()) {
|
if (!settingsFile.exists()) {
|
||||||
System.out.println("[Resurrection] Settings file does not exist. Creating now in the \"plugins\" directory...");
|
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.");
|
System.out.println("[Resurrection] Settings file created successfully.");
|
||||||
} else {
|
} else {
|
||||||
System.out.println("[Resurrection] The settings file has also been found!");
|
System.out.println("[Resurrection] The settings file has also been found!");
|
||||||
parseSettings = new ParseSettings();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ParseSettings parseSettings = new ParseSettings();
|
||||||
|
|
||||||
System.out.println("[Resurrection] ---------------------------------------------------------");
|
System.out.println("[Resurrection] ---------------------------------------------------------");
|
||||||
|
|
||||||
if (parseSettings.isSettingsComplete() && !fileFail) {
|
if (parseSettings.isSettingsComplete() && !fileFail) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue