aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-08-19 22:40:04 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-08-19 22:40:04 -0600
commit5890ac164cf94e782bc2604414d01eb6f35e22af (patch)
tree9db69be1fffc1ced2b0e5152103098bfc5c9eff9
parent60ba8bfbab36710b7fe137f8f8a4f62284dd33d2 (diff)
downloadresurrection-5890ac164cf94e782bc2604414d01eb6f35e22af.tar
resurrection-5890ac164cf94e782bc2604414d01eb6f35e22af.tar.gz
resurrection-5890ac164cf94e782bc2604414d01eb6f35e22af.tar.bz2
forgot to fix directory for settings file
-rw-r--r--out/artifacts/Resurrection_jar/Resurrection.jarbin1355931 -> 1355943 bytes
-rw-r--r--src/net/brysonsteck/Resurrection/ParseSettings.java8
2 files changed, 5 insertions, 3 deletions
diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar
index 285210f..bb27e4e 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/ParseSettings.java b/src/net/brysonsteck/Resurrection/ParseSettings.java
index 8682bd2..802678c 100644
--- a/src/net/brysonsteck/Resurrection/ParseSettings.java
+++ b/src/net/brysonsteck/Resurrection/ParseSettings.java
@@ -17,7 +17,7 @@ public class ParseSettings {
public ParseSettings() {
try {
- File settingsFile = new File("data/settings.resurrection");
+ File settingsFile = new File("plugins/settings.resurrection");
if (!settingsFile.exists()) {
// create default settings file
FileWriter writer = new FileWriter(settingsFile);
@@ -29,7 +29,7 @@ public class ParseSettings {
writer.close();
}
String rawData = "";
- BufferedReader reader = new BufferedReader(new FileReader("data/settings.resurrection"));
+ BufferedReader reader = new BufferedReader(new FileReader("plugins/settings.resurrection"));
String line;
String[] setting;
while (true) {
@@ -59,8 +59,10 @@ public class ParseSettings {
System.exit(1);
}
} catch (IOException e) {
- System.out.println("[Resurrection] There was an issue reading the Settings file.");
+ System.out.println("[Resurrection] There was an issue reading the Settings file:");
e.printStackTrace();
+ System.out.println("[Resurrection] This file is crucial to Resurrection. Since the file is not complete, the plugin will now stop.");
+ System.exit(1);
}
}