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

%statistic_mine_block% doubles the number #13

Open
ghost opened this issue Mar 19, 2020 · 7 comments
Open

%statistic_mine_block% doubles the number #13

ghost opened this issue Mar 19, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Mar 19, 2020

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

+1

1 similar comment
@DarkKnights22
Copy link

+1

@aBooDyy aBooDyy transferred this issue from PlaceholderAPI/PlaceholderAPI Mar 20, 2020
@mathiasmupschi
Copy link

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

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

This issue is still persistent.

@Dshooot
Copy link

Dshooot commented Jul 13, 2024

Issue still active

@gorpnostic
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants