9
0
mirror of https://github.com/Auxilor/EcoBits.git synced 2025-12-19 15:09:19 +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:
MrPibbly
2023-11-29 02:16:25 -06:00
committed by GitHub
parent a55b59745f
commit a520e5b054

View File

@@ -139,6 +139,15 @@ class Currency(
}
)
PlaceholderManager.registerPlaceholder(
PlayerPlaceholder(
plugin,
"${id}_integer"
) {
it.getBalance(this).toInt().toString()
}
)
PlaceholderManager.registerPlaceholder(
PlayerlessPlaceholder(
plugin,