forked from SteamWar/SteamWar
Merge pull request 'fix(SpigotCore): versions above 1.21.6 being kicked from arena' (#412) from SpigotCore/fix-newer-version-being-kicked-from-arena into main
Reviewed-on: SteamWar/SteamWar#412 Reviewed-by: YoyoNow <4+yoyonow@noreply.localhost>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user