feat: Add /firm timer command

This commit is contained in:
Linnea Gräf
2024-12-24 01:01:10 +01:00
parent 39d35afb70
commit 24110c24af
4 changed files with 218 additions and 2 deletions

View File

@@ -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))
}
}