Added support for 1.21.9
Some checks failed
CI Tests & Publish / build (push) Failing after 2m8s

Added more conditions for expressions
This commit is contained in:
AlexDev_ 2025-09-30 21:46:52 +02:00
parent e4ad2c5097
commit 2d2c3ad378
7 changed files with 15 additions and 6 deletions

View File

@ -130,4 +130,6 @@ jobs:
1.21.5 1.21.5
1.21.6 1.21.6
1.21.7 1.21.7
1.21.8
1.21.9
java: 21 java: 21

View File

@ -119,4 +119,6 @@ jobs:
1.21.5 1.21.5
1.21.6 1.21.6
1.21.7 1.21.7
1.21.8
1.21.9
java: 21 java: 21

View File

@ -25,10 +25,10 @@ ext {
repositories { repositories {
mavenCentral() mavenCentral()
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
maven { url = 'https://repo.william278.net/velocity/' } maven { url = 'https://repo.william278.net/velocity/' }
maven { url = 'https://repo.william278.net/releases/' } maven { url = 'https://repo.william278.net/releases/' }
maven { url = 'https://repo.william278.net/snapshots/' } maven { url = 'https://repo.william278.net/snapshots/' }
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
maven { url = 'https://repo.minebench.de/' } maven { url = 'https://repo.minebench.de/' }
maven { url = 'https://jitpack.io' } maven { url = 'https://jitpack.io' }
} }

View File

@ -3,10 +3,10 @@ javaVersion=21
org.gradle.jvmargs='-Dfile.encoding=UTF-8' org.gradle.jvmargs='-Dfile.encoding=UTF-8'
org.gradle.daemon=true org.gradle.daemon=true
plugin_version=1.7.8 plugin_version=1.7.9
plugin_archive=velocitab plugin_archive=velocitab
plugin_description=A beautiful and versatile TAB list plugin for Velocity proxies plugin_description=A beautiful and versatile TAB list plugin for Velocity proxies
velocity_api_version=3.4.0 velocity_api_version=3.4.0
velocity_minimum_build=521 velocity_minimum_build=539
papi_proxy_bridge_minimum_version=1.8 papi_proxy_bridge_minimum_version=1.8

View File

@ -38,7 +38,8 @@ public class Protocol770Adapter extends Protocol765Adapter {
super(plugin, Set.of( super(plugin, Set.of(
ProtocolVersion.MINECRAFT_1_21_5, ProtocolVersion.MINECRAFT_1_21_5,
ProtocolVersion.MINECRAFT_1_21_6, ProtocolVersion.MINECRAFT_1_21_6,
ProtocolVersion.MINECRAFT_1_21_7 ProtocolVersion.MINECRAFT_1_21_7,
ProtocolVersion.MINECRAFT_1_21_9
)); ));
} }

View File

@ -423,7 +423,8 @@ public class ScoreboardManager {
.mapping(0x5E, MINECRAFT_1_20_3, false) .mapping(0x5E, MINECRAFT_1_20_3, false)
.mapping(0x60, MINECRAFT_1_20_5, false) .mapping(0x60, MINECRAFT_1_20_5, false)
.mapping(0x67, MINECRAFT_1_21_2, false) .mapping(0x67, MINECRAFT_1_21_2, false)
.mapping(0x66, MINECRAFT_1_21_5, false); .mapping(0x66, MINECRAFT_1_21_5, false)
.mapping(0x6B, MINECRAFT_1_21_9, false);
packetRegistration.register(); packetRegistration.register();
} catch (Throwable e) { } catch (Throwable e) {
plugin.log(Level.ERROR, "Failed to register UpdateTeamsPacket", e); plugin.log(Level.ERROR, "Failed to register UpdateTeamsPacket", e);

View File

@ -110,7 +110,10 @@ public class ConditionManager {
@NotNull @NotNull
private String buildExpression(@NotNull String condition) { private String buildExpression(@NotNull String condition) {
return condition.replace("and", "&&").replace("or", "||") return condition
.replace("GREATER_THAN_OR_EQUAL", ">=").replace("LESS_THAN_OR_EQUAL", "<=")
.replace("GREATER_THAN", ">").replace("LESS_THAN", "<")
.replace("and", "&&").replace("or", "||")
.replace("AND", "&&").replace("OR", "||"); .replace("AND", "&&").replace("OR", "||");
} }