mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2025-01-02 18:28:33 +01:00
Updated ClassTokenReplacer
This commit is contained in:
parent
9445d63773
commit
059139ac22
@ -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 New Issue
Block a user