aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
diff options
context:
space:
mode:
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 76b8741..e8c15ea 100644
--- a/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
+++ b/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
@@ -157,6 +157,10 @@ enum class TransactionType {
value class ItemId(
val string: String
) {
+ fun singleItem(): Pair<ItemId, Double> {
+ return Pair(this, 1.0)
+ }
+
companion object {
val COINS = ItemId("SKYBLOCK_COIN")
val BITS = ItemId("SKYBLOCK_BIT")