Skip to content

RawPlayDataChannel is not supported during ServerSideConnectionEvent.Join #3901

Open
@A248

Description

@A248

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:

  1. Configure SpongeVanilla in proxy mode
  2. Obtain bungeecord:main in ServerSideConnectionEvent.Join
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageThis label is automatically applied to new issues and pull requests to indicate they require triagetype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions