From 276587b07f0264642b94b84cd824024833eacd18 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 28 Jun 2024 23:39:16 +0200 Subject: [PATCH] Fix NPC packet, Fix discord channel Signed-off-by: Lixfel --- .../velocitycore/discord/listeners/DiscordTicketHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/velocitycore/discord/listeners/DiscordTicketHandler.java b/src/de/steamwar/velocitycore/discord/listeners/DiscordTicketHandler.java index 90da59a5..ae830fe2 100644 --- a/src/de/steamwar/velocitycore/discord/listeners/DiscordTicketHandler.java +++ b/src/de/steamwar/velocitycore/discord/listeners/DiscordTicketHandler.java @@ -152,7 +152,7 @@ public class DiscordTicketHandler extends ListenerAdapter { ChatterGroup receivers = Chatter.serverteam(); try { SteamwarUser user = SteamwarUser.get(Long.parseLong(channel.getTopic())); - if(!user.perms().contains(UserPerm.TEAM)) + if(user != null && !user.perms().contains(UserPerm.TEAM)) receivers = new ChatterGroup(receivers, Chatter.of(user)); } catch(NumberFormatException e) { //ignored