aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/commands/rome.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-10-30 18:34:52 +0100
committerLinnea Gräf <nea@nea.moe>2024-10-30 18:34:52 +0100
commit0945aef517c0d8427a07410115a981d1d43e450a (patch)
tree46171aa686bbdd39443004ba7104975068fef797 /src/main/kotlin/commands/rome.kt
parentc9c25b61560e6fb4e1ba2dfb1d5cc61b0ec9ddab (diff)
downloadfirmament-master.tar.gz
firmament-master.tar.bz2
firmament-master.zip
Add mc auto translationsHEADmaster
[no changelog]
Diffstat (limited to 'src/main/kotlin/commands/rome.kt')
-rw-r--r--src/main/kotlin/commands/rome.kt12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/kotlin/commands/rome.kt b/src/main/kotlin/commands/rome.kt
index 8fcbd77..39053d2 100644
--- a/src/main/kotlin/commands/rome.kt
+++ b/src/main/kotlin/commands/rome.kt
@@ -31,6 +31,7 @@ import moe.nea.firmament.util.accessors.messages
import moe.nea.firmament.util.collections.InstanceList
import moe.nea.firmament.util.collections.WeakCache
import moe.nea.firmament.util.mc.SNbtFormatter
+import moe.nea.firmament.util.tr
import moe.nea.firmament.util.unformattedString
@@ -262,15 +263,16 @@ fun firmamentCommand() = literal("firmament") {
}
thenLiteral("events") {
thenExecute {
- source.sendFeedback(Text.translatable("firmament.event.start"))
+ source.sendFeedback(tr("firmament.event.start", "Event Bus Readout:"))
FirmamentEventBus.allEventBuses.forEach { eventBus ->
- source.sendFeedback(Text.translatable(
+ val prefixName = eventBus.eventType.typeName.removePrefix("moe.nea.firmament")
+ source.sendFeedback(tr(
"firmament.event.bustype",
- eventBus.eventType.typeName.removePrefix("moe.nea.firmament")))
+ "- $prefixName:"))
eventBus.handlers.forEach { handler ->
- source.sendFeedback(Text.translatable(
+ source.sendFeedback(tr(
"firmament.event.handler",
- handler.label))
+ " * ${handler.label}"))
}
}
}