File tree Expand file tree Collapse file tree 9 files changed +17
-33
lines changed
src/main/java/lol/hyper/toolstats/tools/config/versions Expand file tree Collapse file tree 9 files changed +17
-33
lines changed Original file line number Diff line number Diff line change 105
105
<dependency >
106
106
<groupId >io.papermc.paper</groupId >
107
107
<artifactId >paper-api</artifactId >
108
- <version >1.21.7 -R0.1-SNAPSHOT</version >
108
+ <version >1.21.8 -R0.1-SNAPSHOT</version >
109
109
<scope >provided</scope >
110
110
</dependency >
111
111
<dependency >
Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ public void update() {
43
43
try {
44
44
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config-9.yml" );
45
45
} 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 );
48
47
}
49
48
50
49
// we make this super verbose so that admins can see what's being added
@@ -72,8 +71,7 @@ public void update() {
72
71
try {
73
72
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config.yml" );
74
73
} 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 );
77
75
}
78
76
toolStats .loadConfig ();
79
77
toolStats .logger .info ("Config has been updated to version 10. A copy of version 9 has been saved as config-9.yml" );
Original file line number Diff line number Diff line change @@ -45,8 +45,7 @@ public void update() {
45
45
try {
46
46
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config-10.yml" );
47
47
} 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 );
50
49
}
51
50
52
51
// we make this super verbose so that admins can see what's being added
@@ -95,8 +94,7 @@ public void update() {
95
94
try {
96
95
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config.yml" );
97
96
} 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 );
100
98
}
101
99
toolStats .loadConfig ();
102
100
toolStats .logger .info ("Config has been updated to version 11. A copy of version 10 has been saved as config-10.yml" );
Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ public void update() {
44
44
try {
45
45
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config-11.yml" );
46
46
} 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 );
49
48
}
50
49
51
50
toolStats .logger .info ("Updating config.yml to version 12." );
@@ -102,8 +101,7 @@ public void update() {
102
101
try {
103
102
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config.yml" );
104
103
} 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 );
107
105
}
108
106
toolStats .loadConfig ();
109
107
toolStats .logger .info ("Config has been updated to version 12. A copy of version 11 has been saved as config-11.yml" );
Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ public void update() {
43
43
try {
44
44
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config-12.yml" );
45
45
} 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 );
48
47
}
49
48
50
49
toolStats .logger .info ("Updating config.yml to version 13." );
@@ -65,8 +64,7 @@ public void update() {
65
64
try {
66
65
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config.yml" );
67
66
} 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 );
70
68
}
71
69
toolStats .loadConfig ();
72
70
toolStats .logger .info ("Config has been updated to version 13. A copy of version 12 has been saved as config-12.yml" );
Original file line number Diff line number Diff line change @@ -46,8 +46,7 @@ public void update() {
46
46
try {
47
47
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config-5.yml" );
48
48
} 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 );
51
50
}
52
51
53
52
// we make this super verbose so that admins can see what's being added
@@ -107,8 +106,7 @@ public void update() {
107
106
try {
108
107
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config.yml" );
109
108
} 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 );
112
110
}
113
111
toolStats .loadConfig ();
114
112
toolStats .logger .info ("Config has been updated to version 6. A copy of version 5 has been saved as config-5.yml" );
Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ public void update() {
43
43
try {
44
44
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config-6.yml" );
45
45
} 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 );
48
47
}
49
48
50
49
// we make this super verbose so that admins can see what's being added
@@ -61,8 +60,7 @@ public void update() {
61
60
try {
62
61
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config.yml" );
63
62
} 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 );
66
64
}
67
65
toolStats .loadConfig ();
68
66
toolStats .logger .info ("Config has been updated to version 7. A copy of version 6 has been saved as config-6.yml" );
Original file line number Diff line number Diff line change @@ -45,8 +45,7 @@ public void update() {
45
45
try {
46
46
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config-7.yml" );
47
47
} 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 );
50
49
}
51
50
52
51
// we make this super verbose so that admins can see what's being added
@@ -78,8 +77,7 @@ public void update() {
78
77
try {
79
78
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config.yml" );
80
79
} 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 );
83
81
}
84
82
toolStats .loadConfig ();
85
83
toolStats .logger .info ("Config has been updated to version 8. A copy of version 7 has been saved as config-7.yml" );
Original file line number Diff line number Diff line change @@ -45,8 +45,7 @@ public void update() {
45
45
try {
46
46
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config-8.yml" );
47
47
} 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 );
50
49
}
51
50
52
51
toolStats .logger .info ("Updating config.yml to version 9." );
@@ -78,8 +77,7 @@ public void update() {
78
77
try {
79
78
toolStats .config .save ("plugins" + File .separator + "ToolStats" + File .separator + "config.yml" );
80
79
} 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 );
83
81
}
84
82
toolStats .loadConfig ();
85
83
toolStats .logger .info ("Config has been updated to version 9. A copy of version 8 has been saved as config-8.yml" );
You can’t perform that action at this time.
0 commit comments