mirror of
https://github.com/Auxilor/EcoBits.git
synced 2025-12-20 07:29:31 +00:00
Update Currency.kt
Added an integer placeholder. I needed a placeholder that would strip the decimals and just use the integer value. Figured I'd share in case you're interested.
This commit is contained in:
@@ -139,6 +139,15 @@ class Currency(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PlaceholderManager.registerPlaceholder(
|
||||||
|
PlayerPlaceholder(
|
||||||
|
plugin,
|
||||||
|
"${id}_integer"
|
||||||
|
) {
|
||||||
|
it.getBalance(this).toInt().toString()
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
PlaceholderManager.registerPlaceholder(
|
PlaceholderManager.registerPlaceholder(
|
||||||
PlayerlessPlaceholder(
|
PlayerlessPlaceholder(
|
||||||
plugin,
|
plugin,
|
||||||
|
|||||||
Reference in New Issue
Block a user