diff options
author | Linnea Gräf <nea@nea.moe> | 2024-06-14 18:34:40 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-06-14 18:34:40 +0200 |
commit | e4bd69a0569b4ccc49b9e4b89998220bf4bfe25a (patch) | |
tree | 2cb89c55c9c63cbb115cfeaff1848f301c9a461c /src/main/kotlin/moe/nea/firmament/commands | |
parent | cd1826a49822e7be0fb583e7b540270560fb657d (diff) | |
download | Firmament-e4bd69a0569b4ccc49b9e4b89998220bf4bfe25a.tar.gz Firmament-e4bd69a0569b4ccc49b9e4b89998220bf4bfe25a.tar.bz2 Firmament-e4bd69a0569b4ccc49b9e4b89998220bf4bfe25a.zip |
Add shiny pig tracker
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/commands')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/commands/rome.kt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/commands/rome.kt b/src/main/kotlin/moe/nea/firmament/commands/rome.kt index 74391a6..dc46f1f 100644 --- a/src/main/kotlin/moe/nea/firmament/commands/rome.kt +++ b/src/main/kotlin/moe/nea/firmament/commands/rome.kt @@ -9,7 +9,7 @@ package moe.nea.firmament.commands import com.mojang.brigadier.CommandDispatcher import com.mojang.brigadier.arguments.StringArgumentType.string -import io.ktor.client.statement.* +import io.ktor.client.statement.bodyAsText import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource import net.minecraft.text.Text import moe.nea.firmament.apis.UrsaManager @@ -195,6 +195,13 @@ fun firmamentCommand() = literal("firmament") { FairySouls.TConfig.showConfigEditor() } } + thenLiteral("simulate") { + thenArgument("message", RestArgumentType) { message -> + thenExecute { + MC.instance.messageHandler.onGameMessage(Text.literal(get(message)), false) + } + } + } thenLiteral("sbdata") { thenExecute { source.sendFeedback(Text.stringifiedTranslatable("firmament.sbinfo.profile", SBData.profileId)) |