SteamWar/BungeeCore
Archiviert
13
2

Fix NPC packet, Fix discord channel
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <git-5w3l@lixfel.de>
Dieser Commit ist enthalten in:
Lixfel 2024-06-28 23:39:16 +02:00
Ursprung 5554b28894
Commit 276587b07f

Datei anzeigen

@ -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