architectury / architectury-api

An intermediary api aimed at easing development of multiplatform mods.
https://discord.architectury.dev/
GNU Lesser General Public License v3.0
315 stars 56 forks source link

Plugin message channel name maybe too long for a spigot server. #436

Open qyl27 opened 1 year ago

qyl27 commented 1 year ago

I am working with a hybird server software named MohistMC/Banner.
I found a mod BetterFurnacesReforged have a 22-char-long modid betterfurnacesreforged and its channel name is betterfurnaces_network, also 22 chars.

In architectury api, there is a uuid append after the channel name. it may exceed the limit of spigot (64 chars).
When a client mod with longer than 31-char channel name wants to communite with a pure-spigot server, it also will cause player cannot join server.

This issue related with NetworkChannel.java#L60-L61.

Althrough paper have a system property to change it, but is there any better implementation?