diff --git a/build.gradle.kts b/build.gradle.kts index 7f674b3..c65eee6 100755 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -39,7 +39,7 @@ dependencies { testImplementation("org.junit.jupiter:junit-jupiter:5.8.1") // Compile Minestom into project - compileOnly("com.github.Minestom:Minestom:4ee5cbe424") + compileOnly("com.github.Minestom:Minestom:7867313290") // import kotlinx serialization compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.1") @@ -48,7 +48,7 @@ dependencies { implementation("org.javacord", "javacord", "3.3.2") // implement KStom - compileOnly("com.github.Project-Cepi:KStom:1229e45e12") + compileOnly("com.github.Project-Cepi:KStom:82f7000079") // Add EnergyExtension compileOnly("com.github.Project-Cepi:EnergyExtension:d6343c100c") diff --git a/src/main/kotlin/world/cepi/chatextension/debug/subcommands/TitleSubcommand.kt b/src/main/kotlin/world/cepi/chatextension/debug/subcommands/TitleSubcommand.kt index 557c75b..ea1b9c5 100644 --- a/src/main/kotlin/world/cepi/chatextension/debug/subcommands/TitleSubcommand.kt +++ b/src/main/kotlin/world/cepi/chatextension/debug/subcommands/TitleSubcommand.kt @@ -14,16 +14,16 @@ internal object TitleSubcommand : Kommand({ val subtitle = MiniMessageArgument.single("subtitle") - syntax(full, title, subtitle).onlyPlayers { + syntax(full, title, subtitle) { player.showTitle( Title.title( context[title], context[subtitle] ) ) - } + }.onlyPlayers() - syntax(clear).onlyPlayers { + syntax(clear) { player.clearTitle() - } + }.onlyPlayers() }, "title") \ No newline at end of file diff --git a/src/main/kotlin/world/cepi/chatextension/social/messaging/MessageHandler.kt b/src/main/kotlin/world/cepi/chatextension/social/messaging/MessageHandler.kt index b8724df..52a086e 100644 --- a/src/main/kotlin/world/cepi/chatextension/social/messaging/MessageHandler.kt +++ b/src/main/kotlin/world/cepi/chatextension/social/messaging/MessageHandler.kt @@ -32,14 +32,14 @@ object MessageHandler { Component.text("To ", TextColor.color(209, 209, 209)) .append(Component.text(to.username, NamedTextColor.GRAY)) .append(Component.text(" // ", NamedTextColor.DARK_GRAY)) - .append(FormattedChat.miniMessageFormat.parse(message)) + .append(FormattedChat.miniMessageFormat.deserialize(message)) ) to.sendMessage( Component.text("From ", TextColor.color(209, 209, 209)) .append(Component.text(fromUsername, NamedTextColor.GRAY)) .append(Component.text(" // ", NamedTextColor.DARK_GRAY)) - .append(FormattedChat.miniMessageFormat.parse(message)) + .append(FormattedChat.miniMessageFormat.deserialize(message)) ) logger.info( @@ -48,7 +48,7 @@ object MessageHandler { .fgRgb(156, 156, 156).a(" -> ") .fgDefault().a(to.username) .fgRgb(156, 156, 156).a(" // ") - .fgDefault().a(LegacyComponentSerializer.legacyAmpersand().serialize(FormattedChat.miniMessageFormat.parse(message))) + .fgDefault().a(LegacyComponentSerializer.legacyAmpersand().serialize(FormattedChat.miniMessageFormat.deserialize(message))) .reset().toString() ) }