From 79fbb4e6f69df86e885464ddb84b163b90872eee Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Mon, 6 May 2024 20:52:16 +0200 Subject: Add config gui --- src/main/kotlin/moe/nea/ledger/LedgerLogger.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/kotlin/moe/nea/ledger/LedgerLogger.kt') 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: (?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})".toPattern() -- cgit