Don't attempt to fire ServerChatEvent if it's null
Fixes
@@ -310,7 +310,9 @@ private static boolean createAndPostServerChatEvent(SpongeToForgeEventData event
forgeEvent = new ServerChatEvent(player, spongeEvent.getRawMessage().toPlain(), SpongeTexts.toComponent(spongeEvent.getMessage()));
eventData.setForgeEvent(forgeEvent);
}
+ if (forgeEvent != null) {
forgeEventBus.post(eventData);
+ }
return true;
}
