Open
Description
Affected Product(s)
SpongeVanilla
Version
spongevanilla-1.16.5-8.1.0-RC1175
Operating System
Linux
Java Version
17.0.8.1
Plugins/Mods
LibertyBans 1.1.0-SNAPSHOT, LuckPerms-Sponge 5.4.55.
Describe the bug
I'm using the bungeecord:main
channel and attempting to send data during ServerSideConnectionEvent.Join
. The channel returns that it is unsupported during this event.
However, RawPlayDataChannel
is documented to support sending to clients during the play phase. Surely, is ServerSideConnectionEvent.Join
not in the play phase?
Steps to reproduce:
- Configure SpongeVanilla in proxy mode
- Obtain bungeecord:main in ServerSideConnectionEvent.Join
- Check if the client supports this channel
@Listener(order = Order.EARLY)
public void onJoin(ServerSideConnectionEvent.Join event) {
ServerPlayer player = event.player();
Game game = Sponge.game();
RawPlayDataChannel channel = game.channelManager()
.ofType(ResourceKey.of("bungeecord", "main"), RawDataChannel.class)
.play();
boolean supported = channel.isSupportedBy(player.connection());
System.out.println("Supported: " + supported);
}
Link to logs
N/A