Skip to content

Commit

Permalink
Update Currency.kt
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MrPibbly authored Nov 29, 2023
1 parent a55b597 commit a520e5b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,15 @@ class Currency(
}
)

PlaceholderManager.registerPlaceholder(
PlayerPlaceholder(
plugin,
"${id}_integer"
) {
it.getBalance(this).toInt().toString()
}
)

PlaceholderManager.registerPlaceholder(
PlayerlessPlaceholder(
plugin,
Expand Down

0 comments on commit a520e5b

Please sign in to comment.