aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/textutil.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-24 01:01:10 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-24 01:01:10 +0100
commit24110c24af3ed14c0da050a2cdb1053b183b30b6 (patch)
treed2064615a58240ec111fb2f307cba5078842eee6 /src/main/kotlin/util/textutil.kt
parent39d35afb702cf017569ef9594774561848db7494 (diff)
downloadFirmament-24110c24af3ed14c0da050a2cdb1053b183b30b6.tar.gz
Firmament-24110c24af3ed14c0da050a2cdb1053b183b30b6.tar.bz2
Firmament-24110c24af3ed14c0da050a2cdb1053b183b30b6.zip
feat: Add /firm timer command
Diffstat (limited to 'src/main/kotlin/util/textutil.kt')
-rw-r--r--src/main/kotlin/util/textutil.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/kotlin/util/textutil.kt b/src/main/kotlin/util/textutil.kt
index 5d95d7a..06ed8c8 100644
--- a/src/main/kotlin/util/textutil.kt
+++ b/src/main/kotlin/util/textutil.kt
@@ -142,8 +142,7 @@ fun MutableText.bold(): MutableText = styled { it.withBold(true) }
fun MutableText.clickCommand(command: String): MutableText {
require(command.startsWith("/"))
return this.styled {
- it.withClickEvent(ClickEvent(ClickEvent.Action.RUN_COMMAND,
- "/firm disablereiwarning"))
+ it.withClickEvent(ClickEvent(ClickEvent.Action.RUN_COMMAND, command))
}
}