Make dev velocity easier to debug and fix version issue

This commit is contained in:
D4rkr34lm
2026-06-02 20:18:13 +02:00
parent a9fb982143
commit f3ce124a23
3 changed files with 16 additions and 2 deletions
@@ -152,7 +152,7 @@ public class TechHider {
ClientboundSetHeldSlotPacket.class, // 7.1.104 Set Held Item (Player owning the channel) ClientboundSetHeldSlotPacket.class, // 7.1.104 Set Held Item (Player owning the channel)
ClientboundSetObjectivePacket.class, // 7.1.105 Update Objectives ClientboundSetObjectivePacket.class, // 7.1.105 Update Objectives
ClientboundSetPlayerInventoryPacket.class, // 7.1.107 Set Player Inventory Slot (Player owning the channel) ClientboundSetPlayerInventoryPacket.class, // 7.1.107 Set Player Inventory Slot (Player owning the channel)
ClientboundSetPlayerTeamPacket.class, // 7.1.108 Update Teams // ClientboundSetPlayerTeamPacket.class, // 7.1.108 Update Teams
ClientboundSetScorePacket.class, // 7.1.109 Update Score ClientboundSetScorePacket.class, // 7.1.109 Update Score
ClientboundSetSimulationDistancePacket.class, // 7.1.110 Set Simulation Distance ClientboundSetSimulationDistancePacket.class, // 7.1.110 Set Simulation Distance
ClientboundSetSubtitleTextPacket.class, // 7.1.111 Set Subtitle Text ClientboundSetSubtitleTextPacket.class, // 7.1.111 Set Subtitle Text
+2 -1
View File
@@ -42,11 +42,12 @@ dependencies {
implementation(project(":CommandFramework")) implementation(project(":CommandFramework"))
} }
tasks.register<DevServer>("DevVelocity") { tasks.register<VelocityServer>("DevVelocity") {
group = "run" group = "run"
description = "Run a Dev Velocity" description = "Run a Dev Velocity"
dependsOn(":VelocityCore:shadowJar") dependsOn(":VelocityCore:shadowJar")
dependsOn(":VelocityCore:Persistent:jar") dependsOn(":VelocityCore:Persistent:jar")
dependsOn(":VelocityCore:Dependencies:shadowJar") dependsOn(":VelocityCore:Dependencies:shadowJar")
template = "DevVelocity" template = "DevVelocity"
packetDecodeLogging=true
} }
+13
View File
@@ -278,6 +278,19 @@ class DevServer extends DefaultTask {
} }
} }
class VelocityServer extends DevServer {
@Input
@Optional
Boolean packetDecodeLogging = false
VelocityServer() {
super()
doFirst {
if(packetDecodeLogging) dParams.put("velocity.packet-decode-logging", "true")
}
}
}
class FightServer extends DevServer { class FightServer extends DevServer {
@Input @Input