aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/Ledger.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-11 15:22:18 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-11 16:43:20 +0200
commit71d7054571c6f7eca8c28b8f0bf396c16a28543c (patch)
tree4107f88b95977fb205ebe03b8ded2bba75a3c44f /src/main/kotlin/moe/nea/ledger/Ledger.kt
parent79fbb4e6f69df86e885464ddb84b163b90872eee (diff)
downloadmoney-ledger-71d7054571c6f7eca8c28b8f0bf396c16a28543c.tar.gz
money-ledger-71d7054571c6f7eca8c28b8f0bf396c16a28543c.tar.bz2
money-ledger-71d7054571c6f7eca8c28b8f0bf396c16a28543c.zip
WIP custom dsl
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/Ledger.kt')
-rw-r--r--src/main/kotlin/moe/nea/ledger/Ledger.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/Ledger.kt b/src/main/kotlin/moe/nea/ledger/Ledger.kt
index f27eba1..96cddab 100644
--- a/src/main/kotlin/moe/nea/ledger/Ledger.kt
+++ b/src/main/kotlin/moe/nea/ledger/Ledger.kt
@@ -3,6 +3,11 @@ package moe.nea.ledger
import io.github.notenoughupdates.moulconfig.common.IMinecraft
import io.github.notenoughupdates.moulconfig.managed.ManagedConfig
import moe.nea.ledger.config.LedgerConfig
+import moe.nea.ledger.database.Column
+import moe.nea.ledger.database.DBInstant
+import moe.nea.ledger.database.DBString
+import moe.nea.ledger.database.Database
+import moe.nea.ledger.database.Table
import net.minecraft.client.Minecraft
import net.minecraft.command.CommandBase
import net.minecraft.command.ICommandSender
@@ -61,6 +66,8 @@ class Ledger {
@Mod.EventHandler
fun init(event: FMLInitializationEvent) {
logger.info("Initializing ledger")
+ Database.init()
+
ClientCommandHandler.instance.registerCommand(object : CommandBase() {
override fun canCommandSenderUseCommand(sender: ICommandSender?): Boolean {
return true