mirror of
https://github.com/WiIIiam278/Velocitab.git
synced 2025-11-18 07:14:23 +01:00
Added more conditions for expressions
This commit is contained in:
parent
e4ad2c5097
commit
2d2c3ad378
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -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
|
||||||
@ -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' }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
@ -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", "||");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user