Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

placeholder output different from internal output #31

Closed
HamtaBot opened this issue Sep 27, 2022 · 4 comments
Closed

placeholder output different from internal output #31

HamtaBot opened this issue Sep 27, 2022 · 4 comments
Assignees
Labels
under investigation This is being looked into

Comments

@HamtaBot
Copy link

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 HamtaBot changed the title placeholder output different from interlal output placeholder output different from internal output Sep 27, 2022
@HamtaBot
Copy link
Author

@tastybento

@tastybento tastybento self-assigned this Dec 11, 2022
@tastybento tastybento added the under investigation This is being looked into label Dec 11, 2022
@tastybento
Copy link
Member

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
Copy link
Author

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

@tastybento
Copy link
Member

Fixed with #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
under investigation This is being looked into
Projects
None yet
Development

No branches or pull requests

2 participants