BentoBoxWorld / Bank

Allow your players to deposit and withdraw money from the island's bank! See island rankings!
Eclipse Public License 2.0
2 stars 6 forks source link

placeholder output different from internal output #31

Open HamtaBot opened 1 year ago

HamtaBot commented 1 year ago

Expected behavior

on my server we translate 1.000.000.000 to Mi so placeholder output should be Mi and not G

Observed/Actual behavior

actually is show right in the chat as you can see on the screenshot but doesnt works correctly on scoreboard image

Steps/models to reproduce

withdraw or deposit that value on the ob bank and you will see what i mean , i translated values on placeholder API config like that image

BentoBox version

Serveur Invalide (PUFFERFISH) 1.17.1. Version de BentoBox : 1.21.0-SNAPSHOT-b2260 Base de données : JSON Mondes de jeu chargés : oneblock_world (OneBlock) : Overworld Addons chargés : AOneBlock 1.11.0-SNAPSHOT-b265 (ENABLED) Bank 1.4.0-SNAPSHOT-b62 (ENABLED) Biomes 1.14.1-SNAPSHOT-b214 (ENABLED) Chat 1.1.4 (ENABLED) ControlPanel 1.13.1-SNAPSHOT-b54 (ENABLED) Level 2.9.1-SNAPSHOT-b500 (ENABLED) Likes 2.3.0-SNAPSHOT-b85 (ENABLED)

Plugin list

i can't do that for securty reasons

Other

No response

HamtaBot commented 1 year ago

@tastybento

tastybento commented 1 year ago

I'm not sure what placeholder you are using, but you might want to try %Bank_[gamemode]_island_balance_number% or %Bank_[gamemode]_visited_island_balance_number, which gives a raw, unformatted version. Then maybe PlaceholderManager will format it how you want.

HamtaBot commented 1 year ago

wouldnt it be better to change that value on bank message.yml ? like that everyone can change it