From 29ca5d2114a34e5b10ce1dc79813fa57fdf5295b Mon Sep 17 00:00:00 2001 From: sya-ri Date: Sat, 25 Jul 2020 15:21:03 +0900 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E6=8E=A8=E5=A5=A8=E3=83=A1=E3=82=BD?= =?UTF-8?q?=E3=83=83=E3=83=89=E3=81=AE=E5=A4=89=E6=9B=B4=20v3.1=E3=81=AE?= =?UTF-8?q?=E3=83=AA=E3=83=AA=E3=83=BC=E3=82=B9?= 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/core/message/JsonBuilder.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index f6c8ce1..88a12c3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } group = "me.syari.ss.core" -version = "3.1-pre" +version = "3.1" val ssMavenRepoUploadURL: String by extra val ssMavenRepoUploadUser: String by extra diff --git a/src/main/kotlin/me/syari/ss/core/message/JsonBuilder.kt b/src/main/kotlin/me/syari/ss/core/message/JsonBuilder.kt index 8fce136..6658384 100644 --- a/src/main/kotlin/me/syari/ss/core/message/JsonBuilder.kt +++ b/src/main/kotlin/me/syari/ss/core/message/JsonBuilder.kt @@ -4,6 +4,7 @@ import me.syari.ss.core.code.StringEditor.toColor import net.md_5.bungee.api.chat.ClickEvent import net.md_5.bungee.api.chat.HoverEvent import net.md_5.bungee.api.chat.TextComponent +import net.md_5.bungee.api.chat.hover.content.Text class JsonBuilder { private val message = mutableListOf() @@ -58,7 +59,7 @@ class JsonBuilder { is JsonMessage.Text -> addExtra( TextComponent(eachMessage.text.toColor).apply { eachMessage.hover?.let { - hoverEvent = HoverEvent(HoverEvent.Action.SHOW_TEXT, arrayOf(TextComponent(it.toColor))) + hoverEvent = HoverEvent(HoverEvent.Action.SHOW_TEXT, Text(it.toColor)) } eachMessage.click?.let { clickEvent = ClickEvent(it.event, it.content.toColor)