add back legacy placeholder for money spent

Took 3 minutes
This commit is contained in:
Kiran Hart 2022-11-21 12:30:50 -05:00
parent bfb4df41df
commit 7acef89912
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -82,6 +82,9 @@ public class PlaceholderAPIHook extends PlaceholderExpansion {
if (params.equalsIgnoreCase("total_money_earned"))
return String.valueOf(AuctionHouse.getInstance().getAuctionStatisticManager().getStatisticByPlayer(player.getUniqueId(), AuctionStatisticType.MONEY_EARNED));
if (params.equalsIgnoreCase("total_money_spent"))
return String.valueOf(AuctionHouse.getInstance().getAuctionStatisticManager().getStatisticByPlayer(player.getUniqueId(), AuctionStatisticType.MONEY_SPENT));
if (params.equalsIgnoreCase("active_auctions")) {
AuctionPlayer auctionPlayer = AuctionHouse.getInstance().getAuctionPlayerManager().getPlayer(player.getUniqueId());