Please update to at least 1.3.0!
Previous versions may leak the velocity secret!
All previously supported Minecraft versions also got an update. Just download the update and replace the old jar.
You should also regenerate your velocity secret as a precaution!
To do that delete your "forwarding.secret" and re-run velocity which generates you a new secret. Copy your new secret to your servers neoforwarding-server.toml.
NeoForwarding
This mod enables modern player information forwarding in NeoForge servers for use with a Velocity proxy and also includes a port of CrossStitch as it is necessary to make modded commands work.
How to use:
Copy appropriate jar to your server mods folder and run the server once. Stop the server and go to config/neoforwarding-server.toml and insert your forwarding secret and set "enableForwarding" to true.
If you are running any amount of additional mods or a mod pack:
It is very likely that you have to also increase Velocitys max-known-packs limit! See FAQ.
FAQ:
Q: The login fails and velocity gives me an error. How to fix?
A: Run velocity with
-Dvelocity.packet-decode-logging=true
and look if the error says "too many known packs" then this should do the trick:
If you are using a couple of mods you have to raise the known packets limit within velocity from its vanilla default of 64 to a maximum of 64 + number of mods and you should be good to go. If you host multiple modded servers use the mod count of the server with the most mods used.
EXAMPLE: if you use 200 mods set it to 64+200 (more than that should not be needed).
-Dvelocity.max-known-packs=264
CAUTION:
Do not set it too high as it is meant as a protective measure against bad actors and even higher values than in the given example have no benefit anyway!
See also:
https://docs.papermc.io/velocity/reference/system-properties#velocitymax-known-packs
Licenses:
If there is anything wrong with the code used, message me.
How to Install NeoForwarding (Mod)
NeoForwarding by Sonic2423 is verified for Neoforge across Minecraft versions 1.20.4, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4 (latest release: 1.3.0, file size: 18 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.4, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4) and platform (Neoforge).
- Make sure you have the compatible loader or environment installed for Neoforge.
- Move the downloaded NeoForwarding file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Versionmerge previous 1.21.X fixes
merge previous 1.21.X fixes
fix possible leak of secret
small payload records rework (bad code brang to attention by "ustc-zzzz" on github).
small payload records rework (bad code brang to attention by "ustc-zzzz" on github).
small payload records rework (bad code brang to attention by "ustc-zzzz" on github).
Added CrossStitch toggle in config.
Fixed config being ignored in some cases.
Added CrossStitch toggle in config.
Fixed config being ignored in some cases.
Fixed server stopping crash.
Added CrossStitch toggle in config.
Fixed config being ignored in some cases.