forgot a check

This commit is contained in:
ZeroEpoch1969 2019-11-28 12:23:08 -07:00
parent 421315a31c
commit cc6a9a843c
No known key found for this signature in database
GPG Key ID: A7BAB4E14F089CF3

View File

@ -15,7 +15,7 @@ public class DiscordToMinecraftListener extends ListenerAdapter
public void onMessageReceived(MessageReceivedEvent event)
{
String chat_channel_id = ConfigEntry.DISCORD_CHAT_CHANNEL_ID.getString();
if (!chat_channel_id.isEmpty() && event.getChannel().getId().equals(chat_channel_id))
if (event.getMember() != null && !chat_channel_id.isEmpty() && event.getChannel().getId().equals(chat_channel_id))
{
if (!event.getAuthor().getId().equals(Discord.bot.getSelfUser().getId()))
{