Fix wrong tip if wrong config version
This commit is contained in:
parent
3a6d1366ab
commit
6153da89a1
1 changed files with 2 additions and 2 deletions
|
@ -75,9 +75,9 @@ public record TweaksConfig(
|
||||||
|
|
||||||
if (configVersion == 0) {
|
if (configVersion == 0) {
|
||||||
throw exception;
|
throw exception;
|
||||||
} else if (configVersion > CONFIG_VERSION) {
|
|
||||||
throw new RuntimeException("Please follow update instructions https://www.spigotmc.org/resources/tweaks724.121057/updates", exception);
|
|
||||||
} else if (configVersion < CONFIG_VERSION) {
|
} else if (configVersion < CONFIG_VERSION) {
|
||||||
|
throw new RuntimeException("Please follow update instructions https://www.spigotmc.org/resources/tweaks724.121057/updates", exception);
|
||||||
|
} else if (configVersion > CONFIG_VERSION) {
|
||||||
throw new RuntimeException("Did you downgrade the plugin? Remove config.yml and let the plugin re-create it", exception);
|
throw new RuntimeException("Did you downgrade the plugin? Remove config.yml and let the plugin re-create it", exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue