mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-05 18:09:37 +01:00
Build with latest DiscordSRV version (1.16.6)
This commit is contained in:
parent
c2fd0dded0
commit
68a282690a
2
pom.xml
2
pom.xml
@ -445,7 +445,7 @@
|
||||
<dependency>
|
||||
<groupId>com.scarsz.discordsrv</groupId>
|
||||
<artifactId>DiscordSRV</artifactId>
|
||||
<version>1.16.1-SNAPSHOT-190</version>
|
||||
<version>1.16.6</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
|
@ -56,8 +56,12 @@ public class DiscordSRVHook {
|
||||
} else {
|
||||
plugin.logDebug("DiscordSRVHook: Unable to find channel: " + channelName);
|
||||
plugin.logDebug("DiscordSRVHook: Channel list: " + DiscordSRV.getPlugin().getChannels().keySet());
|
||||
plugin.logDebug("DiscordSRVHook: Sending message to ChatChannel instead: " + chatChannel.getName());
|
||||
DiscordUtil.sendMessage(chatChannel, discordMessage);
|
||||
if (chatChannel != null) {
|
||||
plugin.logDebug("DiscordSRVHook: Sending message to ChatChannel instead: " + chatChannel.getName());
|
||||
DiscordUtil.sendMessage(chatChannel, discordMessage);
|
||||
} else {
|
||||
plugin.logDebug("DiscordSRVHook: No default channel found");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user