Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
非推奨メソッドの変更
Browse files Browse the repository at this point in the history
v3.1のリリース
  • Loading branch information
sya-ri committed Jul 25, 2020
1 parent 3962760 commit 29ca5d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/main/kotlin/me/syari/ss/core/message/JsonBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<JsonMessage>()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 29ca5d2

Please sign in to comment.