Sponge icon indicating copy to clipboard operation
Sponge copied to clipboard

RawDataChannel does not work on spongeNeo

Open lelmc opened this issue 11 months ago • 1 comments

Affected Product(s)

SpongeForge

Version

spongeneo-1.21.1-21.1.35-12.0.0-universal

Operating System

Linux

Java Version

Eclipse Adoptium OpenJDK 64-Bit Server VM 21.0.3+9-LTS

Plugins/Mods

plugins: auth, WorldEdit, LocaleAPI, LuckPerms, H2Driver, MySQLDriver, CommandPack, RegionGuard, TablistBoard
mods: Minecraft, Kotlin For Forge, SpongeAPI, Sponge, NeoForge, SpongeNeo, Armourer's Workshop.

Describe the bug

via Sponge.channelManager().ofType(ResourceKey.resolve("lelmc:auth"), RawDataChannel.class); The registered custom message channel does not work on spongeNeo, the same code works fine on spongeforge. Channel [lelmc:auth] failed to connect: Channel of mod "lelmc" failed to connect: This channel is missing on the server side, but required on the client!

Link to logs

No response

lelmc avatar Jan 20 '25 07:01 lelmc

Work fine on my side with SpongeNeo 1.21.1-21.1.35-12.0.2-universal Image With this as code

@Listener
public void onServerStart(final StartedEngineEvent<Server> event) {
   RawDataChannel rawDataChannel = Sponge.channelManager().ofType(ResourceKey.resolve("lelmc:auth"), RawDataChannel.class);
   System.out.println(rawDataChannel);
}

Did I misunderstand something ? Or just the latest version fixed it. ~~Also, I tried without any mods or plugins except the one for testing.~~ I tried with the mods and plugins and it worked.

AlexandreArcil avatar Aug 04 '25 17:08 AlexandreArcil