alexdev03 / BuyCraftAPI

MIT License
1 stars 3 forks source link

Placeholder returning "Error" when parsing places other than the 1st Place #5

Open audeze opened 8 months ago

audeze commented 8 months ago

Hi Alessandro4,

I'm encountering this issue where while making a DecentHologram leaderboard with the BuycrafAPI PAPI placeholders, I get this error spam. Here's the stacktrace:

https://pastes.dev/bXhcyKfysw

I'm using the placeholders:

%buycraftAPI_top_donor_current_month_name_1% %buycraftAPI_top_donor_current_month_name_2% %buycraftAPI_top_donor_current_month_name_3%

Yet even running /papi parse me %buycraftAPI_top_donor_current_month_name_2% returns with Error

Since the placeholder only allow for 1-3, that means I literally can't have a leaderboard in place with places 1-10 (and just have the empty placeholder return with nothing), but instead I have to manually change it every month.

This issue is to suggest allowing having places other than existing payments, so it can be left in place and refreshed every month.

alexdev03 commented 8 months ago

Hi, could you try this jar for me, please? BuyCraftAPI-4.5.zip

audeze commented 8 months ago

Screenshot_17 Same error during server startup

alexdev03 commented 8 months ago

BuyCraftAPI-4.7.0.zip Sorry I sent you the wrong jar, this should work.

audeze commented 8 months ago

Screenshot_19

alexdev03 commented 8 months ago

Have you tried restarting the server?

audeze commented 8 months ago

It gives the same error during startup

alexdev03 commented 8 months ago

Send the full log please. I tried on my test server and it worked fine.

audeze commented 8 months ago

Full startup log: https://mclo.gs/m5GZV2j

alexdev03 commented 8 months ago

Try the expansion on a clean server