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:
@@ -139,6 +139,15 @@ class Currency(
|
||||
}
|
||||
)
|
||||
|
||||
PlaceholderManager.registerPlaceholder(
|
||||
PlayerPlaceholder(
|
||||
plugin,
|
||||
"${id}_integer"
|
||||
) {
|
||||
it.getBalance(this).toInt().toString()
|
||||
}
|
||||
)
|
||||
|
||||
PlaceholderManager.registerPlaceholder(
|
||||
PlayerlessPlaceholder(
|
||||
plugin,
|
||||
|
||||
Reference in New Issue
Block a user