This is a Velocity plugin that makes it possible to host a modern forge server behind a Velocity proxy!
对于非 0x02 的数据包:直接释放缓冲区并返回。在重置阶段,唯一需要关注的是 0x02(Login Plugin Response)数据包。其他数据包(如延迟的 PLAY 状态数据包)无法被处于 LOGIN 状态的 MinecraftDecoder 解码,因此安全丢弃。 对于 0x02 + id=98 的数据包:在拦截后添加 buf.release() 来修复内存泄漏。 |
||
|---|---|---|
| gradle/wrapper | ||
| src/main | ||
| Velocity@ecf936f356 | ||
| .gitignore | ||
| .gitmodules | ||
| build.gradle.kts | ||
| gradlew | ||
| gradlew.bat | ||
| LICENSE | ||
| README.md | ||
| settings.gradle.kts | ||
Ambassador
This is a Velocity plugin that makes it possible to host a modern Forge server behind a Velocity proxy!
Unlike other solutions, this plugin does not require any special modifications to the backend server nor the client. (The player doesn't need to do anything)
How to get started:
- Download and install this plugin to your proxy.
- After starting the server, configure the plugin it to your liking using the config file found in the folder "Ambassador".
- If you want to use player-information forwarding you can use any of these mods on the 1.13+ forge server:
-
https://github.com/adde0109/Proxy-Compatible-Forge (Modern forwarding) (Magma 1.18.2 and higher includes this)
-
https://github.com/caunt/BungeeForge (Legacy forwarding)
Features
- Server switching using kick to reset the client with configureble message and switch timeout.
- ServerRedirect support for auto-reconnecting during switch.
- Server switching using client mod for instant server switching: https://github.com/Just-Chaldea/Forge-Client-Reset-Packet 1.18.2 and 1.19 fork: https://github.com/adde0109/Forge-Client-Reset-Packet
Stuck on "Negotiating":
This is an issue with Client Reset Packet Mod being partly incompatible with certain mods on the client. Please remove incompatible mods on the client if you have this issue. (Yes, this also includes client-side only mods.)