Skip to content

Commit 9946865

Browse files
committed
Persistent command history
1 parent 51882e9 commit 9946865

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

common/src/main/kotlin/com/lambda/command/CommandManager.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ object CommandManager : Configurable(LambdaConfig), Loadable {
4949

5050
if (isolatedCommand.isBlank()) return@runSafe
5151
mc.inGameHud.chatHud.addToMessageHistory(command)
52+
mc.commandHistoryManager.add(command)
5253
val reader = StringReader(isolatedCommand)
5354

5455
try {

common/src/main/kotlin/com/lambda/command/commands/ConfigCommand.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.lambda.command.commands
22

3-
import com.lambda.brigadier.CommandResult
43
import com.lambda.brigadier.CommandResult.Companion.failure
54
import com.lambda.brigadier.CommandResult.Companion.success
65
import com.lambda.brigadier.argument.string
@@ -17,7 +16,7 @@ object ConfigCommand : LambdaCommand() {
1716
override val name = "config"
1817

1918
init {
20-
register(name) {
19+
register(name, "cfg") {
2120
required(word("action")) { action ->
2221
val actions = listOf("save", "load")
2322

common/src/main/kotlin/com/lambda/module/Module.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ abstract class Module(
9696
private val isEnabledSetting = setting("Enabled", enabledByDefault, { false })
9797
private val keybindSetting = setting("Keybind", defaultKeybind)
9898
private val isVisible = setting("Visible", true)
99-
private val customTags = setting("Tags", defaultTags)
99+
private val customTags = setting("Tags", defaultTags, { false })
100100

101101
var isEnabled by isEnabledSetting
102102
override val isMuted: Boolean

0 commit comments

Comments
 (0)