Add label to /firm sendcoords
This commit is contained in:
@@ -9,7 +9,10 @@ package moe.nea.firmament.commands
|
|||||||
import com.mojang.brigadier.CommandDispatcher
|
import com.mojang.brigadier.CommandDispatcher
|
||||||
import com.mojang.brigadier.arguments.StringArgumentType.string
|
import com.mojang.brigadier.arguments.StringArgumentType.string
|
||||||
import io.ktor.client.statement.*
|
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.apis.UrsaManager
|
||||||
|
import moe.nea.firmament.features.inventory.buttons.InventoryButtons
|
||||||
import moe.nea.firmament.features.inventory.storageoverlay.StorageOverlayScreen
|
import moe.nea.firmament.features.inventory.storageoverlay.StorageOverlayScreen
|
||||||
import moe.nea.firmament.features.world.FairySouls
|
import moe.nea.firmament.features.world.FairySouls
|
||||||
import moe.nea.firmament.gui.config.AllConfigsGui
|
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.gui.profileviewer.ProfileViewer
|
||||||
import moe.nea.firmament.repo.HypixelStaticData
|
import moe.nea.firmament.repo.HypixelStaticData
|
||||||
import moe.nea.firmament.repo.RepoManager
|
import moe.nea.firmament.repo.RepoManager
|
||||||
import moe.nea.firmament.util.*
|
import moe.nea.firmament.util.FirmFormatters
|
||||||
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource
|
import moe.nea.firmament.util.MC
|
||||||
import net.minecraft.text.Text
|
import moe.nea.firmament.util.SBData
|
||||||
import moe.nea.firmament.features.inventory.buttons.InventoryButtons
|
import moe.nea.firmament.util.ScreenUtil
|
||||||
|
import moe.nea.firmament.util.SkyblockId
|
||||||
|
import moe.nea.firmament.util.unformattedString
|
||||||
|
|
||||||
|
|
||||||
fun firmamentCommand() = literal("firmament") {
|
fun firmamentCommand() = literal("firmament") {
|
||||||
@@ -95,6 +100,12 @@ fun firmamentCommand() = literal("firmament") {
|
|||||||
val p = MC.player ?: return@thenExecute
|
val p = MC.player ?: return@thenExecute
|
||||||
MC.sendServerChat("x: ${p.blockX}, y: ${p.blockY}, z: ${p.blockZ}")
|
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") {
|
thenLiteral("storage") {
|
||||||
thenExecute {
|
thenExecute {
|
||||||
|
|||||||
Reference in New Issue
Block a user