aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-08-11 20:46:00 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-08-11 20:46:00 -0600
commit4f1404492b4320b16d7565dd6c5820b8f3bc7f82 (patch)
treeb84f0cb4a12be7ba830fefc24ca23405a346dba2 /src/net/brysonsteck/Resurrection
parent88494765a73282c3c7b175d8d63701eb27c2aac1 (diff)
downloadresurrection-4f1404492b4320b16d7565dd6c5820b8f3bc7f82.tar
resurrection-4f1404492b4320b16d7565dd6c5820b8f3bc7f82.tar.gz
resurrection-4f1404492b4320b16d7565dd6c5820b8f3bc7f82.tar.bz2
added check for settings file
Diffstat (limited to 'src/net/brysonsteck/Resurrection')
-rw-r--r--src/net/brysonsteck/Resurrection/Resurrection.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/brysonsteck/Resurrection/Resurrection.java b/src/net/brysonsteck/Resurrection/Resurrection.java
index 03ec2b1..5879c0c 100644
--- a/src/net/brysonsteck/Resurrection/Resurrection.java
+++ b/src/net/brysonsteck/Resurrection/Resurrection.java
@@ -87,19 +87,19 @@ public class Resurrection extends JavaPlugin implements Listener {
} else {
System.out.println("[Resurrection] The player data file has been found!");
}
- if (!playerFile.exists()) {
- System.out.println("[Resurrection] Player data file does not exist. Creating now in the \"plugins\" directory...");
+ if (!settingsFile.exists()) {
+ System.out.println("[Resurrection] Settings file does not exist. (This file is new with the 0.2 beta if you upgraded.) Creating now in the \"plugins\" directory...");
try {
playerFile.createNewFile();
- System.out.println("[Resurrection] Player data file created successfully.");
+ System.out.println("[Resurrection] Settings file created successfully.");
} catch (IOException e) {
- System.out.println("[Resurrection] An error has occurred creating the player data file!");
+ System.out.println("[Resurrection] An error has occurred creating the settings file!");
e.printStackTrace();
System.out.println("[Resurrection] This file is crucial to Resurrection. Since the file could not be created, the plugin will now stop.");
System.exit(1);
}
} else {
- System.out.println("[Resurrection] The player data file has been found!");
+ System.out.println("[Resurrection] The settings file has also been found!");
}
System.out.println("[Resurrection] ---------------------------------------------------------");