mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-14 19:15:08 -05:00
Updated ClassTokenReplacer
This commit is contained in:
parent
9445d63773
commit
059139ac22
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ plugins {
|
|||
id "application"
|
||||
id "maven-publish"
|
||||
id "idea"
|
||||
id "net.raphimc.class-token-replacer" version "1.0.1"
|
||||
id "net.raphimc.class-token-replacer" version "1.1.0"
|
||||
id "xyz.wagyourtail.jvmdowngrader" version "0.7.2"
|
||||
}
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ public class PluginManager {
|
|||
if (!yaml.containsKey("version")) throw new IllegalStateException("Plugin '" + file.getName() + "' does not have a version attribute in the viaproxy.yml");
|
||||
if (!yaml.containsKey("main")) throw new IllegalStateException("Plugin '" + file.getName() + "' does not have a main attribute in the viaproxy.yml");
|
||||
final Semver minVersion = new Semver(yaml.getOrDefault("min-version", "0.0.0").toString());
|
||||
if (!ViaProxy.VERSION.equals("${version}") && minVersion.isGreaterThan(ViaProxy.VERSION.replace("-SNAPSHOT", ""))) {
|
||||
if (!ViaProxy.VERSION.startsWith("${") && minVersion.isGreaterThan(ViaProxy.VERSION.replace("-SNAPSHOT", ""))) {
|
||||
throw new IllegalStateException("Plugin '" + file.getName() + "' requires a newer version of ViaProxy (v" + minVersion + ")");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue