BuyCraft Expansion PlaceholderAPI icon

BuyCraft Expansion PlaceholderAPI -----

This expansion allows to get buycraft placeholders




This expansion now supports max 500 requests every 300 seconds.
----------, Jan 10, 2024

Now this papi expansion supports both BuyCraftX plugin and Tebex plugin.
----------, Jan 9, 2024

Fixed #3 , fixed many problems with http requests, restyled a bit the code, improved overall performance and fixed a few old placeholders bugs.
Now if the request fail and get error 429, it will continue to ask other requests. Before it would stop the task.

Refactored the BuycraftAPI to utilize OkHttp and Gson for more reliable API communications, making the code more efficient and easier to maintain. Also, enhanced error handling across the application for better resilience to unexpected issues. Manual data manipulation methods have been replaced with Java's Stream API methods for better performance and readability.

Currently there is a limit of requests the expansion can make so if you get rate limited just wait. I already asked tebex support to improve this system.
----------, Sep 19, 2023

Fixed problem with old Java Versions. 1.8 versions didn't work due to class version problem, so I downgraded the java version of the project to Java 8.
----------, Aug 11, 2022

Fixed all the bugs, now the expansion will not use files anymore (you can delete the folder). Changed a few placeholders so check them. Now if you want to use vault you need to be in another thread. The expansion will now use http request to tebex to retrieve all the payments information. This new version could contain bugs. Report them here on spigot.
----------, Aug 9, 2022

Fixed UUIDs bugs when the placeholders need the name of the player.

Removed old placeholders from the list.


Thanks to @Crazzguyy for helping me with tests.
----------, Aug 9, 2021

Fixed duplicate of useuuids in the config
----------, Jul 25, 2021

In this update I recoded a little the code and I added new features.
Features:
  • Added bar %buycraftapi_bar_monthly% placeholder. You can customize it in the config.
  • Added %buycraftapi_top_donor_monthly_value% placeholder. It shows the total value of all payments of the player in the last 30 days.
  • Added %buycraftapi_top_donor_current_month_value% placeholder. It shows the total value of all payments of the player in the last 30 days.
  • Added %buycraftapi_top_donor_global_value% placeholder. It shows the total value of all payments of the player.
The last 3 placeholders can be used with plugins such LeaderHeads.
Thanks to @SirApathy by helping me with tests.
----------, Jul 25, 2021

Fixed locale date problems
----------, Jul 7, 2021

With this update I added the possibility to change the task time in the config. By modify this value you can change the time after that the plugin will request again the payments from tebex. It's in minutes.
----------, Jun 3, 2021

With this new placeholder you can use plugins such LeaderHeads with BuyCraftAPI expansion.

%buycraftAPI_value_from_name%
----------, May 2, 2021

Added possibility to use players'names instead of UUIDS

You can disable UUIDS in config.yml
----------, Feb 24, 2021

In this update I added 4 new placeholders:
  • %buycraftAPI_top_donor_current_month_name_<number>%
  • %buycraftAPI_top_donor_current_month_price_<number>%
  • %buycraftAPI_vault_top_donor_current_month_name_
    <number>%
  • %buycraftAPI_total_earnings_current_month%

The difference between current month and monthly is this:
Example Current Month: 1 February - 14 February
Example Monthly: 14 Jenuary - 14 February


I thank @ JackGamer180 for helping me with tests.
----------, Feb 14, 2021

Recoded some methods
----------, Feb 7, 2021

Improved Method
----------, Feb 5, 2021

Improved Methods
----------, Feb 5, 2021

Internal methods changed
----------, Feb 3, 2021

Added bstats support
----------, Jan 31, 2021

Fixed methor problem. Now It's possibile to download this expansion with ecloud.
----------, Jan 29, 2021

In this new version I added a folder called BuyCraftAPI that will be automatically generated inside PlaceholderAPI folder. This folder will contains a config.yml file and another folder called Data. The data folder will contails a file for each players that bought a package on your store. The file is called "(UUID of the players ).yml". In this file you can add manual payments and modify current payments. Every hour the expansion will try to find new payments and it will add they into the files. The config.yml instead will contains the currency used (Default is EUR, modify if you don't use euros), the global top(now considering that the expansion saves
each payment from now, it now supports more than 100 payments (the "recent_.." placeholders still have max 100 payments.)) and the monthly top.

New placeholders:

- %buycraftAPI_total_earnings_global%
- %buycraftAPI_total_earnings_monthly%
- %buycraftAPI_top_donor_global_name_<number>%
- %buycraftAPI_top_donor_monthly_name_<number>%
- %buycraftAPI_top_donor_global_price_<number>%
- %buycraftAPI_top_donor_monthly_price_<number>%
- %buycraftAPI_vault_top_donor_global_name_<number>%
- %buycraftAPI_vault_top_donor_monthly_name_<number>%
- %buycraftAPi_top_donor_global_currency_<number>%
- %buycraftAPi_top_donor_monthly_currency_<number>%


If you find any bug contact me via discord alexdalfo4_#4401
----------, Jan 28, 2021

Now the expansion will not load if there are no payments in the webstore.
----------, Dec 10, 2020

Fixed bugs of payments numbers.
----------, Dec 4, 2020

Added new Placeholder:
  • %buycraftapi_info% -> this placeholder return the total money that player spent in the last 100 total server payments
----------, Nov 7, 2020

Digits of payments' price is now reduced from 15 digits to 2.
----------, Oct 16, 2020

This update fix a little bug with the index(num).
----------, Aug 15, 2020

Added new Placeholders:
  • %BuycraftAPI_vault_recent_name_<num>% -> this placeholder returns the primary vault group of the player

  • %BuycraftAPI_vault_top_donor_name_<num>% -> this placeholder returns the primary vault group of the player

  • %BuycraftAPI_all% -> this placeholder prints in player's chat all top players
----------, Aug 14, 2020

Huge lag bug fixed
----------, Aug 5, 2020

Fixed Lag Problem
----------, Aug 5, 2020

Added new placeholders:
  • %BuycraftAPI_top_donor_name_<num>%
  • %BuycraftAPI_top_donor_price_<num>%
  • %BuycraftAPI_top_donor_currency_<num>%
Remove placeholders:
  • %buycraftapi_top_donator_name%
  • %buycraftapi_top_donator_price%
  • %buycraftapi_top_donator_currency%
----------, Aug 5, 2020

- Increased the maxim payments from 11 to 100.
- Added new Placeholders:
# %buycraftapi_top_donator_name% - It will show you the name of the top donator
# %buycraftapi_top_donator_price% - It will show you the total price of the top donator
# %buycraftapi_top_donator_currency% - It will show you the currency of the top donator
----------, Aug 3, 2020

Resource Information
Author:
----------
Total Downloads: 2,724
First Release: Aug 2, 2020
Last Update: Jan 10, 2024
Category: ---------------
All-Time Rating:
21 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings