mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 19:45:54 +01:00
Merge pull request #36 from Scarsz/patch-1
Fix NoSuchMethodError with DiscordSRV hook
This commit is contained in:
commit
c97a0dce4e
@ -44,7 +44,7 @@ public class DiscordListener {
|
|||||||
@Subscribe(priority = ListenerPriority.MONITOR)
|
@Subscribe(priority = ListenerPriority.MONITOR)
|
||||||
public void onDiscordGuildMessageReceivedEvent(DiscordGuildMessageReceivedEvent event) {
|
public void onDiscordGuildMessageReceivedEvent(DiscordGuildMessageReceivedEvent event) {
|
||||||
if (discordPlugin.getConfig().getBoolean("DiscordChatChannelListCommandEnabled")
|
if (discordPlugin.getConfig().getBoolean("DiscordChatChannelListCommandEnabled")
|
||||||
&& event.getMessage().getContent().equalsIgnoreCase(discordPlugin.getConfig().getString("DiscordChatChannelListCommandMessage"))) {
|
&& event.getMessage().getContentRaw().equalsIgnoreCase(discordPlugin.getConfig().getString("DiscordChatChannelListCommandMessage"))) {
|
||||||
plugin.logDebug("[onDiscordGuildMessageReceivedEvent] Ignoring DiscordChatChannelListCommandMessage");
|
plugin.logDebug("[onDiscordGuildMessageReceivedEvent] Ignoring DiscordChatChannelListCommandMessage");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -54,7 +54,7 @@ public class DiscordListener {
|
|||||||
event.getMember().getEffectiveName(),
|
event.getMember().getEffectiveName(),
|
||||||
event.getMember().getColor(),
|
event.getMember().getColor(),
|
||||||
event.getChannel().getName(),
|
event.getChannel().getName(),
|
||||||
event.getMessage().getContent());
|
event.getMessage().getContentDisplay());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user