Build with latest DiscordSRV version (1.16.6)

This commit is contained in:
cnaude 2019-03-07 18:42:46 -07:00
parent c2fd0dded0
commit 68a282690a
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -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");
}
}
}