From 88e3aa27946bd94a1413b9dcfdd4dadc6ed643dc Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Sun, 1 May 2016 22:12:13 -0500 Subject: [PATCH] v1.7.1 Fix error where plugin crashes without bot token --- build.gradle | 2 +- src/main/kotlin/gg/obsidian/discordbridge/Configuration.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index a37f12e..c447c24 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ plugins { apply plugin: 'kotlin' group = 'gg.obsidian' -version = '1.7.0' +version = '1.7.1' description = """Bridge chat between Minecraft and Discord""" ext.url = 'https://github.com/the-obsidian/DiscordBridge' diff --git a/src/main/kotlin/gg/obsidian/discordbridge/Configuration.kt b/src/main/kotlin/gg/obsidian/discordbridge/Configuration.kt index 9b0d1b1..5110715 100644 --- a/src/main/kotlin/gg/obsidian/discordbridge/Configuration.kt +++ b/src/main/kotlin/gg/obsidian/discordbridge/Configuration.kt @@ -38,9 +38,9 @@ class Configuration(val plugin: Plugin) { SERVER_ID = plugin.config.getString("settings.server-id") CHANNEL = plugin.config.getString("settings.channel") USERNAME = plugin.config.getString("settings.username") - EMAIL = plugin.config.getString("settings.email") - PASSWORD = plugin.config.getString("settings.password") - TOKEN = plugin.config.getString("settings.token") + EMAIL = plugin.config.getString("settings.email", "") + PASSWORD = plugin.config.getString("settings.password", "") + TOKEN = plugin.config.getString("settings.token", "") DEBUG = plugin.config.getBoolean("settings.debug", false) RELAY_CANCELLED_MESSAGES = plugin.config.getBoolean("settings.relay_cancelled_messages", true)