diff --git a/src/de/steamwar/bungeecore/listeners/mods/Forge.java b/src/de/steamwar/bungeecore/listeners/mods/Forge.java index 6136fd5..0539713 100644 --- a/src/de/steamwar/bungeecore/listeners/mods/Forge.java +++ b/src/de/steamwar/bungeecore/listeners/mods/Forge.java @@ -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 {