diff --git a/build.gradle b/build.gradle index 176ad82..d1497e9 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ plugins { apply plugin: 'kotlin' group = 'gg.obsidian' -version = '1.5.0' +version = '1.6.0' description = """Bridge chat between Minecraft and Discord""" ext.url = 'https://github.com/the-obsidian/DiscordBridge' @@ -43,7 +43,7 @@ repositories { dependencies { compile group: 'org.spigotmc', name: 'spigot-api', version:'1.8.8-R0.1-SNAPSHOT' compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version:'1.0.0-rc-1036' - compile group: 'net.dv8tion', name: 'JDA', version:'1.2.2_165' + compile group: 'net.dv8tion', name: 'JDA', version:'1.3.0_188' } processResources { diff --git a/src/main/kotlin/gg/obsidian/discordbridge/DiscordConnection.kt b/src/main/kotlin/gg/obsidian/discordbridge/DiscordConnection.kt index 99f0021..74e6bfc 100644 --- a/src/main/kotlin/gg/obsidian/discordbridge/DiscordConnection.kt +++ b/src/main/kotlin/gg/obsidian/discordbridge/DiscordConnection.kt @@ -5,7 +5,7 @@ import net.dv8tion.jda.entities.Guild import net.dv8tion.jda.entities.TextChannel class DiscordConnection(val plugin: Plugin) : Runnable { - var api = JDABuilder(plugin.configuration.EMAIL, plugin.configuration.PASSWORD).enableVoice(false).buildBlocking() + var api = JDABuilder(plugin.configuration.EMAIL, plugin.configuration.PASSWORD).setAudioEnabled(false).buildBlocking() var listener = DiscordListener(plugin, api, this) var server: Guild? = null var channel: TextChannel? = null @@ -32,7 +32,7 @@ class DiscordConnection(val plugin: Plugin) : Runnable { fun reconnect() { api.removeEventListener(listener) api.shutdown(false) - api = JDABuilder(plugin.configuration.EMAIL, plugin.configuration.PASSWORD).enableVoice(false).buildBlocking() + api = JDABuilder(plugin.configuration.EMAIL, plugin.configuration.PASSWORD).setAudioEnabled(false).buildBlocking() listener = DiscordListener(plugin, api, this) api.addEventListener(listener) }