Skip to content

Commit

Permalink
Bump Minestom
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDog896 committed May 27, 2022
1 parent b285862 commit 4fc23cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
Expand Up @@ -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")
Expand Up @@ -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(
Expand All @@ -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()
)
}
Expand Down

0 comments on commit 4fc23cf

Please sign in to comment.