aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/commands/rome.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2023-11-12 14:45:05 +0100
committerLinnea Gräf <nea@nea.moe>2023-11-12 14:45:05 +0100
commit2c9c38868345d5e133179597936f8e584075b8de (patch)
treea055cd6224d71058821558db33296a4900068216 /src/main/kotlin/moe/nea/firmament/commands/rome.kt
parent897ab0f06b06e4c14eab31a1bf45365671471c8c (diff)
downloadFirmament-2c9c38868345d5e133179597936f8e584075b8de.tar.gz
Firmament-2c9c38868345d5e133179597936f8e584075b8de.tar.bz2
Firmament-2c9c38868345d5e133179597936f8e584075b8de.zip
Add temporary waypoints and /firm sendcoords
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/commands/rome.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/commands/rome.kt11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/commands/rome.kt b/src/main/kotlin/moe/nea/firmament/commands/rome.kt
index f4c20bd..b175d4b 100644
--- a/src/main/kotlin/moe/nea/firmament/commands/rome.kt
+++ b/src/main/kotlin/moe/nea/firmament/commands/rome.kt
@@ -36,8 +36,9 @@ fun firmamentCommand() = literal("firmament") {
}
thenArgument("property", string()) { property ->
suggestsList {
- (AllConfigsGui.allConfigs.find { it.name == this[config] }?:return@suggestsList listOf())
- .allOptions.entries.asSequence().filter { it.value.handler is BooleanHandler }.map { it.key }
+ (AllConfigsGui.allConfigs.find { it.name == this[config] } ?: return@suggestsList listOf())
+ .allOptions.entries.asSequence().filter { it.value.handler is BooleanHandler }
+ .map { it.key }
.asIterable()
}
thenExecute {
@@ -89,6 +90,12 @@ fun firmamentCommand() = literal("firmament") {
InventoryButtons.openEditor()
}
}
+ thenLiteral("sendcoords") {
+ thenExecute {
+ val p = MC.player ?: return@thenExecute
+ MC.sendServerChat("x: ${p.blockX}, y: ${p.blockY}, z: ${p.blockZ}")
+ }
+ }
thenLiteral("storage") {
thenExecute {
ScreenUtil.setScreenLater(StorageOverlayScreen())