aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-06 20:52:16 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-06 20:52:16 +0200
commit79fbb4e6f69df86e885464ddb84b163b90872eee (patch)
treee6d0ede3289a41b838d172a2ba394596ead2268b /src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
parent12f7f03344decf77d96997bf2d4898c6b978bb3c (diff)
downloadmoney-ledger-79fbb4e6f69df86e885464ddb84b163b90872eee.tar.gz
money-ledger-79fbb4e6f69df86e885464ddb84b163b90872eee.tar.bz2
money-ledger-79fbb4e6f69df86e885464ddb84b163b90872eee.zip
Add config gui
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/LedgerLogger.kt')
-rw-r--r--src/main/kotlin/moe/nea/ledger/LedgerLogger.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt b/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
index 4d21e5d..c32caf4 100644
--- a/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
+++ b/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
@@ -11,6 +11,8 @@ import net.minecraftforge.client.ClientCommandHandler
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import net.minecraftforge.fml.common.gameevent.TickEvent.ClientTickEvent
import java.io.File
+import java.sql.Connection
+import java.sql.DriverManager
import java.text.SimpleDateFormat
import java.time.Instant
import java.util.*
@@ -20,6 +22,8 @@ class LedgerLogger {
Minecraft.getMinecraft().ingameGUI?.chatGUI?.printChatMessage(ChatComponentText(text))
}
+ val connection = DriverManager.getConnection("jdbc:sqlite:money-ledger/database.db")
+
val profileIdPattern =
"Profile ID: (?<profile>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})".toPattern()