diff options
author | Linnea Gräf <nea@nea.moe> | 2024-02-15 18:19:25 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-02-15 18:19:25 +0100 |
commit | e5d2966e05fcaca533c09ab5ec5bfd825848be02 (patch) | |
tree | cca954e984af21d3a8b346f803d9c7b1da657f14 /src/main/kotlin | |
parent | ee5d205578117d6fab9b2f89871e5442e480644f (diff) | |
download | LocalTransactionLedger-e5d2966e05fcaca533c09ab5ec5bfd825848be02.tar.gz LocalTransactionLedger-e5d2966e05fcaca533c09ab5ec5bfd825848be02.tar.bz2 LocalTransactionLedger-e5d2966e05fcaca533c09ab5ec5bfd825848be02.zip |
Add insta sell support
Diffstat (limited to 'src/main/kotlin')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/BankDetection.kt | 7 | ||||
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/Ledger.kt | 1 |
2 files changed, 1 insertions, 7 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/BankDetection.kt b/src/main/kotlin/moe/nea/ledger/BankDetection.kt index 6e54539..3e37658 100644 --- a/src/main/kotlin/moe/nea/ledger/BankDetection.kt +++ b/src/main/kotlin/moe/nea/ledger/BankDetection.kt @@ -4,13 +4,6 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import java.util.regex.Pattern class BankDetection(val ledger: LedgerLogger) { - - /* - You have withdrawn 1M coins! You now have 518M coins in your account! - You have deposited 519M coins! You now have 519M coins in your account! - */ - - val withdrawPattern = Pattern.compile("^You have withdrawn (?<amount>$SHORT_NUMBER_PATTERN) coins?! You now have (?<newtotal>$SHORT_NUMBER_PATTERN) coins? in your account!$") val depositPattern = diff --git a/src/main/kotlin/moe/nea/ledger/Ledger.kt b/src/main/kotlin/moe/nea/ledger/Ledger.kt index 63be626..773f90e 100644 --- a/src/main/kotlin/moe/nea/ledger/Ledger.kt +++ b/src/main/kotlin/moe/nea/ledger/Ledger.kt @@ -40,6 +40,7 @@ class Ledger { listOf( this, BankDetection(ledger), + BazaarDetection(ledger) ).forEach(MinecraftForge.EVENT_BUS::register) } |