MilkBowl / Vault

Vault of common APIs for Bukkit Plugins
GNU Lesser General Public License v3.0
496 stars 354 forks source link

Glitch on Vault placeholders when value is "0.001" #833

Closed Tomi010817 closed 3 years ago

Tomi010817 commented 3 years ago

Installed plugins: (3)

EssentialsX-2.18.2.0 PlaceholderAPI-2.10.10-DEV-110 Vault-1.7.3

Environment:

Spigot 1.8.8

Description:

When you set yourself the amount "0.001" of money, it will display as "9.999999999999998E-4" when you parse the placeholder %vault_eco_balance%. Though the amount of money displays well when slashing "/money [name]". https://i.imgur.com/eOBbhDS.png

How to reproduce:

1- Download Vault's PlaceholderAPI expansion. 2- Set your balance exactly to "0.001", with /eco set [Yourname] 0.001 3- Slash "/papi parse me %vault_eco_balance%"

Sleaker commented 3 years ago

This isn't a Vault issue. Placeholder isn't vault. Vault doesn't support commands to set balances, and it doesn't do any translation of data.

Tomi010817 commented 3 years ago

Thank you!