Commit Graph
1 Commits
Author SHA1 Message Date
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