Archiviert
1
0
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-04-13 20:55:51 +02:00
Ursprung 9dcb35a91e
Commit 336d4f6a3c

Datei anzeigen

@ -80,8 +80,11 @@ public class Forge extends BasicListener {
event.registerIntent(BungeeCore.get()); event.registerIntent(BungeeCore.get());
ChannelPipeline pipeline = wrapper.getHandle().pipeline(); ChannelPipeline pipeline = wrapper.getHandle().pipeline();
if(pipeline != null) if(pipeline != null) {
pipeline.get(HandlerBoss.class).setHandler(new CustomPacketHandler(event)); HandlerBoss handlerBoss = pipeline.get(HandlerBoss.class);
if(handlerBoss != null)
handlerBoss.setHandler(new CustomPacketHandler(event));
}
} }
private static class CustomPacketHandler extends PacketHandler { private static class CustomPacketHandler extends PacketHandler {