Errored-Innovations / HeadsPlus

A heads plugin that has grown for over two years into something more ambitious than other plugins.
GNU General Public License v3.0
36 stars 17 forks source link

[BUG] Player head price according to balance shows extra decimal format #87

Closed SideLo98 closed 2 years ago

SideLo98 commented 2 years ago

DO NOT ERASE THE TEMPLATE

FIRST-HAND CHECK - ARE YOU USING THE LATEST VERSION/SNAPSHOT OF HEADSPLUS? Have you checked to see if others have submitted the same bug report?

Yes currently 7.0.2 is latest version

Description of the bug

when using [adjust-price-according-to-balance: true] it displays way too extra value after decimal and doesnt respect the default [price-decimal-format: '#,###.##'] format.

To Reproduce

Steps to reproduce the behavior:

  1. enable [adjust-price-according-to-balance: true].
  2. use either killer/victim's balance doesnt matter and percentage can be anything (in my case it's 100) to display.
  3. let someone kill you to obtain your head with your balance as price in it.

Have you been able to reproduce the bug more than once?

Yes

Expected behavior

It should either display no digits after decimal or max 2 digits as defined in [price-decimal-format: '#,###.##'].

Screenshots

image image

Has a debug report been generated?

If you have a debug report, go to plugin/HeadsPlus/debug, copy your report onto pastebin or hastebin, and paste it here, but also skip to the bottom question (additional information). If you don't, fill in the information below.

Required information

Additional information

Sorry if I missed some info, I can provide in comments if needed.

Thatsmusic99 commented 2 years ago

Should be fixed in this dev build, lemme know if it works.

SideLo98 commented 2 years ago

It is fixed in the dev build yes.