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