aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/kotlin/moe/nea/ledger/config/DebugOptions.kt
diff options
context:
space:
mode:
Diffstat (limited to 'mod/src/main/kotlin/moe/nea/ledger/config/DebugOptions.kt')
-rw-r--r--mod/src/main/kotlin/moe/nea/ledger/config/DebugOptions.kt14
1 files changed, 14 insertions, 0 deletions
diff --git a/mod/src/main/kotlin/moe/nea/ledger/config/DebugOptions.kt b/mod/src/main/kotlin/moe/nea/ledger/config/DebugOptions.kt
new file mode 100644
index 0000000..6b4e51c
--- /dev/null
+++ b/mod/src/main/kotlin/moe/nea/ledger/config/DebugOptions.kt
@@ -0,0 +1,14 @@
+package moe.nea.ledger.config
+
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption
+import moe.nea.ledger.DevUtil
+
+class DebugOptions {
+ @ConfigOption(name = "Log entries to chat",
+ desc = "Appends all logged entries into the chat as they are logged. This option does not persist on restarts.")
+ @Transient
+ @ConfigEditorBoolean
+ @JvmField
+ var logEntries = DevUtil.isDevEnv
+}