aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-01-19 01:42:56 +0100
committerLinnea Gräf <nea@nea.moe>2024-01-19 01:42:56 +0100
commit18ebd21cb0f97dea8367e65002e0bf32e5c686e2 (patch)
tree5eca8f9c1fa8d6344c70de0c5c2f78ee4e09260d
parent0e776eb699449cad3bf93fcc64e44dee4f3dfa12 (diff)
downloadfirmament-18ebd21cb0f97dea8367e65002e0bf32e5c686e2.tar.gz
firmament-18ebd21cb0f97dea8367e65002e0bf32e5c686e2.tar.bz2
firmament-18ebd21cb0f97dea8367e65002e0bf32e5c686e2.zip
Add label to /firm sendcoords
-rw-r--r--src/main/kotlin/moe/nea/firmament/commands/rome.kt19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/commands/rome.kt b/src/main/kotlin/moe/nea/firmament/commands/rome.kt
index b175d4b..eeb5f3e 100644
--- a/src/main/kotlin/moe/nea/firmament/commands/rome.kt
+++ b/src/main/kotlin/moe/nea/firmament/commands/rome.kt
@@ -9,7 +9,10 @@ package moe.nea.firmament.commands
import com.mojang.brigadier.CommandDispatcher
import com.mojang.brigadier.arguments.StringArgumentType.string
import io.ktor.client.statement.*
+import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource
+import net.minecraft.text.Text
import moe.nea.firmament.apis.UrsaManager
+import moe.nea.firmament.features.inventory.buttons.InventoryButtons
import moe.nea.firmament.features.inventory.storageoverlay.StorageOverlayScreen
import moe.nea.firmament.features.world.FairySouls
import moe.nea.firmament.gui.config.AllConfigsGui
@@ -18,10 +21,12 @@ import moe.nea.firmament.gui.config.ManagedOption
import moe.nea.firmament.gui.profileviewer.ProfileViewer
import moe.nea.firmament.repo.HypixelStaticData
import moe.nea.firmament.repo.RepoManager
-import moe.nea.firmament.util.*
-import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource
-import net.minecraft.text.Text
-import moe.nea.firmament.features.inventory.buttons.InventoryButtons
+import moe.nea.firmament.util.FirmFormatters
+import moe.nea.firmament.util.MC
+import moe.nea.firmament.util.SBData
+import moe.nea.firmament.util.ScreenUtil
+import moe.nea.firmament.util.SkyblockId
+import moe.nea.firmament.util.unformattedString
fun firmamentCommand() = literal("firmament") {
@@ -95,6 +100,12 @@ fun firmamentCommand() = literal("firmament") {
val p = MC.player ?: return@thenExecute
MC.sendServerChat("x: ${p.blockX}, y: ${p.blockY}, z: ${p.blockZ}")
}
+ thenArgument("rest", RestArgumentType) { rest ->
+ thenExecute {
+ val p = MC.player ?: return@thenExecute
+ MC.sendServerChat("x: ${p.blockX}, y: ${p.blockY}, z: ${p.blockZ} ${this[rest]}")
+ }
+ }
}
thenLiteral("storage") {
thenExecute {