Added automatic plugin updater and a few smaller changes #21
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ import sx.blah.discord.handle.impl.events.MessageReceivedEvent;
|
|||
public class AutoUpdaterListener implements IListener<MessageReceivedEvent> {
|
||||
@Override
|
||||
public void handle(MessageReceivedEvent event) {
|
||||
if (!event.getMessage().getChannel().equals(DiscordPlugin.officechannel))
|
||||
if (!event.getMessage().getChannel().getID().equals(DiscordPlugin.officechannel))
|
||||
return;
|
||||
if (event.getMessage().getWebhookID() == null)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue