3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00

Don't advertise the BungeeCord plugin messaging channel if it is disabled.

Dieser Commit ist enthalten in:
Andrew Steinborn 2021-02-18 18:12:38 -05:00
Ursprung 648624d333
Commit 72d47b5a3d

Datei anzeigen

@ -65,10 +65,13 @@ public class BackendPlaySessionHandler implements MinecraftSessionHandler {
@Override @Override
public void activated() { public void activated() {
serverConn.getServer().addPlayer(serverConn.getPlayer()); serverConn.getServer().addPlayer(serverConn.getPlayer());
MinecraftConnection serverMc = serverConn.ensureConnected();
serverMc.write(PluginMessageUtil.constructChannelsPacket(serverMc.getProtocolVersion(), if (server.getConfiguration().isBungeePluginChannelEnabled()) {
ImmutableList.of(getBungeeCordChannel(serverMc.getProtocolVersion())) MinecraftConnection serverMc = serverConn.ensureConnected();
)); serverMc.write(PluginMessageUtil.constructChannelsPacket(serverMc.getProtocolVersion(),
ImmutableList.of(getBungeeCordChannel(serverMc.getProtocolVersion()))
));
}
} }
@Override @Override