Skip to content

Commit

Permalink
Fixed action key color bug from spigot
Browse files Browse the repository at this point in the history
  • Loading branch information
LartyHD authored and LartyHD committed Mar 26, 2020
1 parent d501990 commit b0c346a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Nov 25 16:06:11 CET 2018
pluginGroup=de.astride
pluginVersion=1.3.1
pluginVersion=1.3.2
kotlin.code.style=official
versions_spigot=1.8.8-R0.1-SNAPSHOT
# Project-wide Gradle settings.
Expand All @@ -11,4 +11,4 @@ versions_spigot=1.8.8-R0.1-SNAPSHOT
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
org.gradle.jvmargs=-Xmx1536m
2 changes: 1 addition & 1 deletion src/main/kotlin/de/astride/dialogues/data/Option.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ suspend fun Option.perform(player: Player, entityUUID: UUID) {
val textComponents = mutableListOf<TextComponent>()
actions.forEach { (key, value) ->
textComponents += TextComponent().builder()
.setText("$DARK_GRAY[$GREEN$key$DARK_GRAY] ")
.setText("$DARK_GRAY[$GREEN${key.toList().joinToString("$GREEN")}$DARK_GRAY] ")
.setClickEvent(
ClickEvent(ClickEvent.Action.RUN_COMMAND, "/dialogue use option $entityUUID $value")
)
Expand Down

0 comments on commit b0c346a

Please sign in to comment.