From c460435106d6e68284d3e9beb3d9be3c43abd199 Mon Sep 17 00:00:00 2001 From: sya-ri Date: Sun, 31 May 2020 12:54:44 +0900 Subject: [PATCH] =?UTF-8?q?SS-Core=20v2.10=20=E3=81=AB=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 2 +- src/main/kotlin/me/syari/ss/discord/paper/DiscordConnector.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 947f3e3..27e4624 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,7 +26,7 @@ repositories { dependencies { implementation(kotlin("stdlib-jdk8")) implementation("com.destroystokyo.paper:paper-api:1.15.2-R0.1-SNAPSHOT") - implementation("me.syari.ss.core:SS-Core:2.9") + implementation("me.syari.ss.core:SS-Core:2.10") implementation("com.google.code.gson:gson:2.8.0") compileOnly("com.neovisionaries:nv-websocket-client:2.9") compileOnly("com.squareup.okhttp3:okhttp:4.7.1"){ diff --git a/src/main/kotlin/me/syari/ss/discord/paper/DiscordConnector.kt b/src/main/kotlin/me/syari/ss/discord/paper/DiscordConnector.kt index 648b4e7..f039fcb 100644 --- a/src/main/kotlin/me/syari/ss/discord/paper/DiscordConnector.kt +++ b/src/main/kotlin/me/syari/ss/discord/paper/DiscordConnector.kt @@ -10,7 +10,7 @@ import me.syari.ss.discord.Main.Companion.discordPlugin object DiscordConnector: OnEnable { override fun onEnable() { - config(discordPlugin, console, "config.yml"){ + config(discordPlugin, console, "config.yml", default = mapOf("bot_token" to "")){ val token = get("bot_token", ConfigDataType.STRING) if(token != null){ Discord.init(token){ event ->