mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-26 06:05:25 +01:00
added more placeholders
Took 10 seconds
This commit is contained in:
parent
b84feb26d6
commit
4335fa75df
@ -1,6 +1,7 @@
|
|||||||
package ca.tweetzy.auctionhouse.api.hook;
|
package ca.tweetzy.auctionhouse.api.hook;
|
||||||
|
|
||||||
import ca.tweetzy.auctionhouse.AuctionHouse;
|
import ca.tweetzy.auctionhouse.AuctionHouse;
|
||||||
|
import ca.tweetzy.auctionhouse.api.AuctionAPI;
|
||||||
import ca.tweetzy.auctionhouse.auction.AuctionPlayer;
|
import ca.tweetzy.auctionhouse.auction.AuctionPlayer;
|
||||||
import lombok.experimental.UtilityClass;
|
import lombok.experimental.UtilityClass;
|
||||||
import me.clip.placeholderapi.PlaceholderAPI;
|
import me.clip.placeholderapi.PlaceholderAPI;
|
||||||
@ -67,6 +68,26 @@ public class PlaceholderAPIHook extends PlaceholderExpansion {
|
|||||||
return String.valueOf(auctionPlayer.getItems(true).size());
|
return String.valueOf(auctionPlayer.getItems(true).size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params.equalsIgnoreCase("total_money_earned")) {
|
||||||
|
return AuctionAPI.getInstance().formatNumber(AuctionHouse.getInstance().getAuctionStatManager().getPlayerStats(player).getEarned());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (params.equalsIgnoreCase("total_money_spent")) {
|
||||||
|
return AuctionAPI.getInstance().formatNumber(AuctionHouse.getInstance().getAuctionStatManager().getPlayerStats(player).getSpent());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (params.equalsIgnoreCase("total_items_listed")) {
|
||||||
|
return AuctionAPI.getInstance().formatNumber(AuctionHouse.getInstance().getAuctionStatManager().getPlayerStats(player).getCreated());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (params.equalsIgnoreCase("total_items_expired")) {
|
||||||
|
return AuctionAPI.getInstance().formatNumber(AuctionHouse.getInstance().getAuctionStatManager().getPlayerStats(player).getExpired());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (params.equalsIgnoreCase("total_items_sold")) {
|
||||||
|
return AuctionAPI.getInstance().formatNumber(AuctionHouse.getInstance().getAuctionStatManager().getPlayerStats(player).getSold());
|
||||||
|
}
|
||||||
|
|
||||||
if (params.equalsIgnoreCase("server_active_auctions")) {
|
if (params.equalsIgnoreCase("server_active_auctions")) {
|
||||||
return String.valueOf(AuctionHouse.getInstance().getAuctionItemManager().getItems().size());
|
return String.valueOf(AuctionHouse.getInstance().getAuctionItemManager().getItems().size());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user