geforkt von SteamWar/BungeeCore
Fix NPE
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
9dcb35a91e
Commit
336d4f6a3c
@ -80,8 +80,11 @@ public class Forge extends BasicListener {
|
||||
|
||||
event.registerIntent(BungeeCore.get());
|
||||
ChannelPipeline pipeline = wrapper.getHandle().pipeline();
|
||||
if(pipeline != null)
|
||||
pipeline.get(HandlerBoss.class).setHandler(new CustomPacketHandler(event));
|
||||
if(pipeline != null) {
|
||||
HandlerBoss handlerBoss = pipeline.get(HandlerBoss.class);
|
||||
if(handlerBoss != null)
|
||||
handlerBoss.setHandler(new CustomPacketHandler(event));
|
||||
}
|
||||
}
|
||||
|
||||
private static class CustomPacketHandler extends PacketHandler {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren