PlaceholderAPI / Statistics-Expansion

Adds placeholders for minecraft statistics
GNU General Public License v3.0
1 stars 24 forks source link

%statistic_mine_block% doubles the number #13

Open ghost opened 4 years ago

ghost commented 4 years ago

Issue

The %statistic_mine_block% placeholder from the Statistic module reports twice the amount of mined blocks.

Expected behaviour

The statistic will increment by one when a block is mined.

Actual behaviour

The statistic is incremented by two.

https://i.imgur.com/K4lrCdf.png <- Minecraft statistic page https://i.imgur.com/rFbFce9.png <- The placeholder (the second lore line)

How to reproduce

  1. Download the Statistic eCloud module.
  2. Mine a block (or check your current mined blocks in the Minecraft statistics menu)
  3. Parse the %statistic_mine_block% placeholder
  4. It will show double the actual amount of blocks mined.
SlamTheHam commented 4 years ago

+1

DarkKnights22 commented 4 years ago

+1

mathiasmupschi commented 2 years ago

Hey, i just saw that you had the same Problem that i used to have, and it was annoying. But i managed to solve it!

Just download the Math Extension with the command /papi ecloud download Math Then just devide the Number of Mined blocks by 2 like the following : %math_{statistic_mine_block}/2% .

And thats basicaly it. It worked out for me, though im pretty sure not many people even know that something like that is possible. Have a great day!

houtblok commented 1 year ago

This issue is still present as of today with the latest version of PlaceholderAPI and Statistic. Pretty annoying for me as I use a leaderboards plugin that makes use of this placeholder, but it counts double on the leaderboards.

KhrysAK47 commented 4 months ago

This issue is still persistent.

Dshooot commented 3 months ago

Issue still active

gorpnostic commented 2 weeks ago

Hey! So you might want to not have decimals in the number and have it so that the number also doesn't go into half when breaking things like grass or flowers, i found a solution.

Go Into the Placeholder's API .config file and follow what I do.

If you have the math expansion, this is what you should have: expansions: math: Disable-Warnings: false Rounding: half-top Decimals: 3 Debug: false

Make sure to make the decimals say 0 and the rounding to none, this is what it should now look like: expansions: math: Disable-Warnings: false Rounding: none Decimals: 0 Debug: false