diff options
author | Linnea Gräf <nea@nea.moe> | 2024-05-06 20:52:16 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-05-06 20:52:16 +0200 |
commit | 79fbb4e6f69df86e885464ddb84b163b90872eee (patch) | |
tree | e6d0ede3289a41b838d172a2ba394596ead2268b /src/main/kotlin/moe/nea/ledger/LedgerLogger.kt | |
parent | 12f7f03344decf77d96997bf2d4898c6b978bb3c (diff) | |
download | LocalTransactionLedger-79fbb4e6f69df86e885464ddb84b163b90872eee.tar.gz LocalTransactionLedger-79fbb4e6f69df86e885464ddb84b163b90872eee.tar.bz2 LocalTransactionLedger-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.kt | 4 |
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() |