diff --git a/build.gradle.kts b/build.gradle.kts index d2f6176..1524cc6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -32,13 +32,13 @@ dependencies { compileOnly(kotlin("reflect")) // Compile Minestom into project - compileOnly("com.github.Minestom", "Minestom", "4ee5cbe424") + compileOnly("com.github.Minestom", "Minestom", "7867313290") // KStom - compileOnly("com.github.Project-Cepi", "KStom","6ed81b8936") + compileOnly("com.github.Project-Cepi", "KStom","82f7000079") // import kotlinx serialization - compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2") + compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3") // add Particable compileOnly("com.github.Project-Cepi:Particable:acea414be2") diff --git a/src/main/kotlin/world/cepi/momentum/command/MovementCommand.kt b/src/main/kotlin/world/cepi/momentum/command/MovementCommand.kt index 4f8dbaf..a4b0ad3 100644 --- a/src/main/kotlin/world/cepi/momentum/command/MovementCommand.kt +++ b/src/main/kotlin/world/cepi/momentum/command/MovementCommand.kt @@ -40,11 +40,10 @@ object MovementCommand : Kommand({ } - syntax(clear).onlyPlayers { + syntax(clear) { Momentum.abilityManager[player] = null sender.sendFormattedTranslatableMessage("momentum", "clear") - - } + }.onlyPlayers() syntax(info, abilityName) { (!abilityName).description.trim().forEach { sender.sendFormattedMessage(Component.text(it)) }