diff --git a/pom.xml b/pom.xml
index 3c338b0..d89c506 100644
--- a/pom.xml
+++ b/pom.xml
@@ -105,7 +105,7 @@
io.papermc.paper
paper-api
- 1.21.7-R0.1-SNAPSHOT
+ 1.21.8-R0.1-SNAPSHOT
provided
diff --git a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version10.java b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version10.java
index 22eaa1c..dbca0aa 100644
--- a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version10.java
+++ b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version10.java
@@ -43,8 +43,7 @@ public class Version10 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-9.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config-9.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config-9.yml!", exception);
}
// we make this super verbose so that admins can see what's being added
@@ -72,8 +71,7 @@ public class Version10 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config.yml!", exception);
}
toolStats.loadConfig();
toolStats.logger.info("Config has been updated to version 10. A copy of version 9 has been saved as config-9.yml");
diff --git a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version11.java b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version11.java
index 063c33d..15ef3fd 100644
--- a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version11.java
+++ b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version11.java
@@ -45,8 +45,7 @@ public class Version11 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-10.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config-10.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config-10.yml!", exception);
}
// we make this super verbose so that admins can see what's being added
@@ -95,8 +94,7 @@ public class Version11 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config.yml!", exception);
}
toolStats.loadConfig();
toolStats.logger.info("Config has been updated to version 11. A copy of version 10 has been saved as config-10.yml");
diff --git a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version12.java b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version12.java
index 72c1fb9..eafb0c2 100644
--- a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version12.java
+++ b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version12.java
@@ -44,8 +44,7 @@ public class Version12 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-11.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config-11.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config-11.yml!", exception);
}
toolStats.logger.info("Updating config.yml to version 12.");
@@ -102,8 +101,7 @@ public class Version12 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config.yml!", exception);
}
toolStats.loadConfig();
toolStats.logger.info("Config has been updated to version 12. A copy of version 11 has been saved as config-11.yml");
diff --git a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version13.java b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version13.java
index d46a9c1..500c3fb 100644
--- a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version13.java
+++ b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version13.java
@@ -43,8 +43,7 @@ public class Version13 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-12.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config-12.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config-12.yml!", exception);
}
toolStats.logger.info("Updating config.yml to version 13.");
@@ -65,8 +64,7 @@ public class Version13 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config.yml!", exception);
}
toolStats.loadConfig();
toolStats.logger.info("Config has been updated to version 13. A copy of version 12 has been saved as config-12.yml");
diff --git a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version6.java b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version6.java
index a80de4a..5ceb702 100644
--- a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version6.java
+++ b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version6.java
@@ -46,8 +46,7 @@ public class Version6 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-5.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config-5.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config-5.yml!", exception);
}
// we make this super verbose so that admins can see what's being added
@@ -107,8 +106,7 @@ public class Version6 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config.yml!", exception);
}
toolStats.loadConfig();
toolStats.logger.info("Config has been updated to version 6. A copy of version 5 has been saved as config-5.yml");
diff --git a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version7.java b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version7.java
index dd638c3..8ab9cc9 100644
--- a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version7.java
+++ b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version7.java
@@ -43,8 +43,7 @@ public class Version7 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-6.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config-6.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config-6.yml!", exception);
}
// we make this super verbose so that admins can see what's being added
@@ -61,8 +60,7 @@ public class Version7 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config.yml!", exception);
}
toolStats.loadConfig();
toolStats.logger.info("Config has been updated to version 7. A copy of version 6 has been saved as config-6.yml");
diff --git a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version8.java b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version8.java
index d6323ab..6c7c297 100644
--- a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version8.java
+++ b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version8.java
@@ -45,8 +45,7 @@ public class Version8 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-7.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config-7.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config-7.yml!", exception);
}
// we make this super verbose so that admins can see what's being added
@@ -78,8 +77,7 @@ public class Version8 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config.yml!", exception);
}
toolStats.loadConfig();
toolStats.logger.info("Config has been updated to version 8. A copy of version 7 has been saved as config-7.yml");
diff --git a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version9.java b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version9.java
index b69aae4..7f9442e 100644
--- a/src/main/java/lol/hyper/toolstats/tools/config/versions/Version9.java
+++ b/src/main/java/lol/hyper/toolstats/tools/config/versions/Version9.java
@@ -45,8 +45,7 @@ public class Version9 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-8.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config-8.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config-8.yml!", exception);
}
toolStats.logger.info("Updating config.yml to version 9.");
@@ -78,8 +77,7 @@ public class Version9 {
try {
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
} catch (IOException exception) {
- toolStats.logger.severe("Unable to save config.yml!");
- throw new RuntimeException(exception);
+ toolStats.logger.error("Unable to save config.yml!", exception);
}
toolStats.loadConfig();
toolStats.logger.info("Config has been updated to version 9. A copy of version 8 has been saved as config-8.yml");