Skip to content

Commit e38ffde

Browse files
committed
forgot these
1 parent c754024 commit e38ffde

File tree

9 files changed

+17
-33
lines changed

9 files changed

+17
-33
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<dependency>
106106
<groupId>io.papermc.paper</groupId>
107107
<artifactId>paper-api</artifactId>
108-
<version>1.21.7-R0.1-SNAPSHOT</version>
108+
<version>1.21.8-R0.1-SNAPSHOT</version>
109109
<scope>provided</scope>
110110
</dependency>
111111
<dependency>

src/main/java/lol/hyper/toolstats/tools/config/versions/Version10.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public void update() {
4343
try {
4444
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-9.yml");
4545
} catch (IOException exception) {
46-
toolStats.logger.severe("Unable to save config-9.yml!");
47-
throw new RuntimeException(exception);
46+
toolStats.logger.error("Unable to save config-9.yml!", exception);
4847
}
4948

5049
// we make this super verbose so that admins can see what's being added
@@ -72,8 +71,7 @@ public void update() {
7271
try {
7372
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
7473
} catch (IOException exception) {
75-
toolStats.logger.severe("Unable to save config.yml!");
76-
throw new RuntimeException(exception);
74+
toolStats.logger.error("Unable to save config.yml!", exception);
7775
}
7876
toolStats.loadConfig();
7977
toolStats.logger.info("Config has been updated to version 10. A copy of version 9 has been saved as config-9.yml");

src/main/java/lol/hyper/toolstats/tools/config/versions/Version11.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ public void update() {
4545
try {
4646
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-10.yml");
4747
} catch (IOException exception) {
48-
toolStats.logger.severe("Unable to save config-10.yml!");
49-
throw new RuntimeException(exception);
48+
toolStats.logger.error("Unable to save config-10.yml!", exception);
5049
}
5150

5251
// we make this super verbose so that admins can see what's being added
@@ -95,8 +94,7 @@ public void update() {
9594
try {
9695
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
9796
} catch (IOException exception) {
98-
toolStats.logger.severe("Unable to save config.yml!");
99-
throw new RuntimeException(exception);
97+
toolStats.logger.error("Unable to save config.yml!", exception);
10098
}
10199
toolStats.loadConfig();
102100
toolStats.logger.info("Config has been updated to version 11. A copy of version 10 has been saved as config-10.yml");

src/main/java/lol/hyper/toolstats/tools/config/versions/Version12.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ public void update() {
4444
try {
4545
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-11.yml");
4646
} catch (IOException exception) {
47-
toolStats.logger.severe("Unable to save config-11.yml!");
48-
throw new RuntimeException(exception);
47+
toolStats.logger.error("Unable to save config-11.yml!", exception);
4948
}
5049

5150
toolStats.logger.info("Updating config.yml to version 12.");
@@ -102,8 +101,7 @@ public void update() {
102101
try {
103102
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
104103
} catch (IOException exception) {
105-
toolStats.logger.severe("Unable to save config.yml!");
106-
throw new RuntimeException(exception);
104+
toolStats.logger.error("Unable to save config.yml!", exception);
107105
}
108106
toolStats.loadConfig();
109107
toolStats.logger.info("Config has been updated to version 12. A copy of version 11 has been saved as config-11.yml");

src/main/java/lol/hyper/toolstats/tools/config/versions/Version13.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public void update() {
4343
try {
4444
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-12.yml");
4545
} catch (IOException exception) {
46-
toolStats.logger.severe("Unable to save config-12.yml!");
47-
throw new RuntimeException(exception);
46+
toolStats.logger.error("Unable to save config-12.yml!", exception);
4847
}
4948

5049
toolStats.logger.info("Updating config.yml to version 13.");
@@ -65,8 +64,7 @@ public void update() {
6564
try {
6665
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
6766
} catch (IOException exception) {
68-
toolStats.logger.severe("Unable to save config.yml!");
69-
throw new RuntimeException(exception);
67+
toolStats.logger.error("Unable to save config.yml!", exception);
7068
}
7169
toolStats.loadConfig();
7270
toolStats.logger.info("Config has been updated to version 13. A copy of version 12 has been saved as config-12.yml");

src/main/java/lol/hyper/toolstats/tools/config/versions/Version6.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ public void update() {
4646
try {
4747
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-5.yml");
4848
} catch (IOException exception) {
49-
toolStats.logger.severe("Unable to save config-5.yml!");
50-
throw new RuntimeException(exception);
49+
toolStats.logger.error("Unable to save config-5.yml!", exception);
5150
}
5251

5352
// we make this super verbose so that admins can see what's being added
@@ -107,8 +106,7 @@ public void update() {
107106
try {
108107
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
109108
} catch (IOException exception) {
110-
toolStats.logger.severe("Unable to save config.yml!");
111-
throw new RuntimeException(exception);
109+
toolStats.logger.error("Unable to save config.yml!", exception);
112110
}
113111
toolStats.loadConfig();
114112
toolStats.logger.info("Config has been updated to version 6. A copy of version 5 has been saved as config-5.yml");

src/main/java/lol/hyper/toolstats/tools/config/versions/Version7.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public void update() {
4343
try {
4444
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-6.yml");
4545
} catch (IOException exception) {
46-
toolStats.logger.severe("Unable to save config-6.yml!");
47-
throw new RuntimeException(exception);
46+
toolStats.logger.error("Unable to save config-6.yml!", exception);
4847
}
4948

5049
// we make this super verbose so that admins can see what's being added
@@ -61,8 +60,7 @@ public void update() {
6160
try {
6261
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
6362
} catch (IOException exception) {
64-
toolStats.logger.severe("Unable to save config.yml!");
65-
throw new RuntimeException(exception);
63+
toolStats.logger.error("Unable to save config.yml!", exception);
6664
}
6765
toolStats.loadConfig();
6866
toolStats.logger.info("Config has been updated to version 7. A copy of version 6 has been saved as config-6.yml");

src/main/java/lol/hyper/toolstats/tools/config/versions/Version8.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ public void update() {
4545
try {
4646
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-7.yml");
4747
} catch (IOException exception) {
48-
toolStats.logger.severe("Unable to save config-7.yml!");
49-
throw new RuntimeException(exception);
48+
toolStats.logger.error("Unable to save config-7.yml!", exception);
5049
}
5150

5251
// we make this super verbose so that admins can see what's being added
@@ -78,8 +77,7 @@ public void update() {
7877
try {
7978
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
8079
} catch (IOException exception) {
81-
toolStats.logger.severe("Unable to save config.yml!");
82-
throw new RuntimeException(exception);
80+
toolStats.logger.error("Unable to save config.yml!", exception);
8381
}
8482
toolStats.loadConfig();
8583
toolStats.logger.info("Config has been updated to version 8. A copy of version 7 has been saved as config-7.yml");

src/main/java/lol/hyper/toolstats/tools/config/versions/Version9.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ public void update() {
4545
try {
4646
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config-8.yml");
4747
} catch (IOException exception) {
48-
toolStats.logger.severe("Unable to save config-8.yml!");
49-
throw new RuntimeException(exception);
48+
toolStats.logger.error("Unable to save config-8.yml!", exception);
5049
}
5150

5251
toolStats.logger.info("Updating config.yml to version 9.");
@@ -78,8 +77,7 @@ public void update() {
7877
try {
7978
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
8079
} catch (IOException exception) {
81-
toolStats.logger.severe("Unable to save config.yml!");
82-
throw new RuntimeException(exception);
80+
toolStats.logger.error("Unable to save config.yml!", exception);
8381
}
8482
toolStats.loadConfig();
8583
toolStats.logger.info("Config has been updated to version 9. A copy of version 8 has been saved as config-8.yml");

0 commit comments

Comments
 (0)