Commit Graph
2504 Commits
Author SHA1 Message Date
YoyoNow a52f338383 Merge pull request 'Update to 26.3' (#4) from update into master
SteamWarCI Build successful
Reviewed-on: #4
2026-09-24 17:09:44 +02:00
yoyosource 7c79516567 Fix compile of StateRegistry
SteamWarCI Build successful
2026-09-24 17:08:41 +02:00
yoyosource f4eb5c7536 Fix UpdateTeamsPacket in StateRegistry
SteamWarCI Build failed
2026-09-24 17:07:17 +02:00
yoyosource 664826fec3 Merge remote-tracking branch 'upstream/dev/4.0.0' into update
SteamWarCI Build failed
# Conflicts:
#	proxy/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java
2026-09-24 17:05:06 +02:00
Rocco fb0f21f425 Update online mode in reconfigure join packet (#1889) 2026-09-23 14:09:07 +01:00
MiniDigger | Martin 5bb1992014 [ci skip] update namespace badge 2026-09-22 16:09:28 +02:00
MiniDigger | Martin f975230f14 [ci skip] migrate CI to namespace 🚀 (#1888) 2026-09-20 10:23:18 +02:00
Wouter Gritter a6f9de9581 Bound IntervalledCounter size under packet floods
The counter stored one entry per addTime call, so a client sending tiny
(even empty) packets could grow it without limit while staying under the
bytes-per-second limit, eventually OOMing the proxy. Merge data points
within 1ms of the newest one so the entry count is bounded by the window
size (~7000 for the default 7s window) rather than by packet rate.
2026-09-16 13:41:57 +02:00
Wouter Gritter 5000227d11 Snapshot 4.2.1-SNAPSHOT 2026-09-16 13:41:50 +02:00
Wouter Gritter c10b492554 Release 4.2.0 2026-09-14 18:36:05 +02:00
Aaron dff94da2b3 Minecraft 26.3 (#1867)
* 26.3-snapshot-7

* 26.3-snapshot-8

* 26.3-snapshot-9

* 26.3-snapshot-10

* 26.3-pre-1

* 26.3-pre-2

* feat: add post effects packet

* chore: write game modes as var int

* 26.3-pre-3

* 26.3-rc-1

* 26.3

* chore: add key array cap

* fix: add a zero
2026-09-14 18:34:59 +02:00
Braydon 1b48f40534 Fix config reload not removing deleted servers (#1882)
* Fix config reload not removing deleted servers

When reloading velocity.toml, unregister servers that were removed from
the config and evacuate any connected players to fallback servers.

* Requested PR fixes

* Make Expected ConnectedPlayer exceptions more detailed
2026-09-14 18:34:50 +02:00
Wouter Gritter bc55300123 Bump com.puppycrawl.tools:checkstyle to 14.1.0 and fix warnings that were false-negatives before [ci skip]
Checkstyle fixed a bunch of false-negatives; linting errors in the source that should've been caught according to our settings. Rather than updating `checkstyle.xml` to work around these, this commit also properly fixes these checkstyle errors.
2026-09-13 14:01:39 +02:00
Wouter Gritter 15b6ddd1bf Various dependency bumps 2026-09-13 12:41:56 +02:00
21bbf35d1d Adding more options for configuring ping passthrough. (#1870)
* Added 'ALLBUTVERSION' option for ping passthrough.

* Added more configuration options for ping passthrough.

* Updated default velocity.toml

* Add support for the legacy ping passthrough.

* Removed legacy ping passthrough & added config migration

- Bumped config-version to 2.8
- Updated comments and grammar
- Removed legacy ping passthrough in the config

* Cleaned up code to match code style

* Update to latest

* Move ping passthrough into its own section

* Reorder migrations so they occur in the right order.

* Clean up ping passthrough related code.

* Update file dates and cleanup/consolidate ping-passthrough code.

* Update proxy/src/main/java/com/velocitypowered/proxy/config/PingPassthroughMode.java

* Update proxy/src/main/java/com/velocitypowered/proxy/config/PingPassthroughMode.java

* Remaining nits

- Read a string instead of LegacyPingPassthroughMode
- Update `announce-forge`'s comment in `PingPassthroughMigration`
- Consume `Config` instead of `CommentedConfig` in `PingPassthroughMode#fromConfig`

---------

Co-authored-by: TheMiningTeamYT <loanisamazing@outlook.com>
Co-authored-by: ButterDebugger <34288129+ButterDebugger@users.noreply.github.com>
Co-authored-by: Wouter Gritter <wouter@gritter.nl>
2026-09-01 14:49:24 +02:00
Wouter Gritter e84b48a716 Clean up Title packets and enforce action types (#1803) 2026-09-01 13:55:10 +02:00
Wouter Gritter 940f395e3e Use correct minimum ClientSettings packet length for older protocol versions
For correctness's sake: in practice this bug never got triggered because `locale` is almost always a string of length 5+ ("en_us").
2026-09-01 13:19:46 +02:00
Wouter Gritter ddea763c8b Snapshot 4.1.2-SNAPSHOT 2026-09-01 13:10:58 +02:00
yoyosource a3b6177059 Trigger rebuild
SteamWarCI Build successful
2026-08-27 08:31:23 +02:00
yoyosource 3ef5b2ab99 Trigger rebuild
SteamWarCI Build successful
2026-08-27 08:25:34 +02:00
yoyosource 7a8bf8a5e0 Trigger rebuild
SteamWarCI Build failed
2026-08-27 08:22:06 +02:00
yoyosource 05de745780 Trigger rebuild
SteamWarCI Build successful
2026-08-27 08:19:47 +02:00
yoyosource 75ce1a9bf7 Fix StateRegistry maybe
SteamWarCI Build successful
2026-08-27 08:12:17 +02:00
Shane Freeder db0a17eea6 Velocity 4.1.1 release 2026-08-26 20:29:34 +01:00
Wouter Gritter 133f0e36b1 Switch to JLine's jni backend
FFM is the canonical choice for Java 22+, but it has some issues (mainly crashing the JVM on window resize), see jline/jline3#2139 and jline/jline3#2141

Downgrading to 4.0.x isn't an option as it re-introduces CVE-2026-77420..77423

Once the referenced PR gets merged and released, jline should be bumped to jline-terminal-ffm's latest version again
2026-08-26 12:09:46 +02:00
Wouter Gritter b2ba2e66bf Snapshot 4.1.1-SNAPSHOT 2026-08-26 12:09:07 +02:00
Shane Freeder a078053e26 velocity 4.1.0 release 2026-08-24 17:26:12 +01:00
yoyosource 7a39ebb058 Fix StateRegistry and update to dev/4.0.0
SteamWarCI Build successful
2026-08-24 17:14:49 +02:00
yoyosource 57e9cd7f24 Merge remote-tracking branch 'upstream/dev/4.0.0'
# Conflicts:
#	proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BackendPlaySessionHandler.java
2026-08-24 17:03:57 +02:00
Wouter Gritter 4772ca3022 Bump lmbda to 3.0.0, defining generated handlers with the proxy's lookup instead of the plugin's
Reapplies the lmbda 3.0.0 bump reverted in f918d0d6.
2026-08-14 12:53:49 +02:00
YoyoNow b9463125d1 Merge pull request 'Update26' (#3) from update26 into master
SteamWarCI Build successful
Reviewed-on: #3
2026-08-13 09:23:04 +02:00
Shane Freeder f918d0d649 Downgrade lmbda back to 2.0.0
lmbda 3.x moved to using hidden classes for generation which does
not work for cross classloader operations which are somewhat typical
for plugins.
2026-08-12 23:39:19 +01:00
Wouter Gritter e6fbcc9196 Various dependency bumps (#1860)
* Bump fastutil to 8.5.19 and remove exclusions

* Various dependency bumps
2026-08-12 18:32:24 +01:00
Radmir Noirusov 14a69904f9 fix: retain reference-counted packets forwarded via handleGeneric (#1856)
During configuration, a ServerboundCustomClickActionPacket arriving
when connectionInFlight is null falls through to handleGeneric, which
writes it to the connected backend without retaining. The encoder
releases the packet, then MinecraftConnection.channelRead's finally
block releases again - double-free.

Two fixes:
- handle() now uses getConnectionInFlightOrConnectedServer() so the
  packet is properly retained before being written
- handleGeneric() retains any ByteBufHolder packet before write, not
  just PluginMessagePacket

Closes #1841
2026-08-12 18:29:30 +01:00
Jason Penilla 71c50a75eb Export JSpecify annotations at runtime (#1861)
JSpecify annotations have runtime retention, so expose them through the API variant as recommended by JSpecify.
2026-08-12 18:25:15 +01:00
Shane Freeder 00759e5279 Revert "Fix dimension reading for some mods that add extra dimensions in 1.7.10 (#1734)"
This reverts commit 2676520c6a.
2026-08-03 14:09:05 +01:00
Phillipp W. 06ade4775e fix: forward player loaded packet to backend server (#1862)
Return false after handling ServerboundPlayerLoadedPacket so Velocity's normal forwarding path sends the packet to the backend server.
2026-08-03 12:22:58 +01:00
Wouter Gritterandxphorror 2676520c6a Fix dimension reading for some mods that add extra dimensions in 1.7.10 (#1734)
Rewrite the comment and ternary operation to be clearer

Co-authored-by: xphorror <87706197+xphorror@users.noreply.github.com>
2026-08-02 11:13:25 +02:00
e11584ba35 Player Loaded World API (#1541)
Co-authored-by: Emil <12966472+Emilxyz@users.noreply.github.com>
Co-authored-by: Wouter Gritter <wouter@gritter.nl>
2026-07-31 20:03:22 +01:00
Shane Freeder a08972749b Rebuild natives 2026-07-30 16:51:07 +01:00
AuriandShane Freeder c6e9ca989e Add provides API (#1853)
Add provides API

Co-authored-by: Shane Freeder <theboyetronic@gmail.com>
2026-07-29 12:51:34 +01:00
Shane Freeder d30f1d9a74 Compressor cleanups 2026-07-29 00:51:41 +01:00
Emil b45716deff feat: Make version clickable in velocity info command (#1775) 2026-07-19 16:02:20 +02:00
SpigotRCE e653647962 [ci skip] typo fix (#1778) 2026-07-19 16:02:12 +02:00
Shane Freeder 5aab0d1427 [ci skip] primative and functional
oh, my! This stuff is not ideal, but it's the only real protection here unless
we just hack the automation here
2026-07-15 04:28:22 +01:00
Shane Freeder 1cd8d51d02 [ci skip] primative failsafe for mismatched version family 2026-07-15 02:29:29 +01:00
Shane Freeder 9eb338bd1c Fix version family 2026-07-15 02:22:41 +01:00
Andrew Steinborn 60380211f8 Defer ByteBufUtil.getBytes() in config stages until after we check for channel registry 2026-07-14 18:04:07 -04:00
Shane Freeder 3b239daf4c [ci skip] back to snapshots
Hello, Darkness, my old friend
2026-07-14 15:26:19 +01:00
Shane Freeder 90f89053a7 Release 4.0.0 2026-07-14 15:10:04 +01:00