Skip to content
Placeholders & Leaderboards

Placeholders & Leaderboards

Placeholders

Published through XCore, and readable anywhere with PlaceholderAPI. A product is written <shop>.<product>.

PlaceholderDescription
%xshop_buy_<shop>.<product>%What one lot costs the player right now, formatted: %xshop_buy_ores.diamond%. Empty when it is not for sale
%xshop_sell_<shop>.<product>%What one lot pays the player right now. Empty when it is not bought back
%xshop_stock_<shop>.<product>%What is left in stock; empty for an unlimited product
%xshop_event%The name of the sale running, empty when none: one started by hand first, else one of the clock
%xshop_event_time%What is left of it
%xshop_booster%What is left of the player's booster, empty when they have none
%xshop_rotation_<shop>%When a rotating shop's offers change

Every one of them answers from memory, without touching the database, so a scoreboard can ask several times a second. Prices are those of the player who asks: their price group, their booster and the sales running.

Leaderboards

For every currency, XShop declares two rankings in XCore, the ten players who earned the most selling to the shop and the ten who spent the most buying from it, read again every five minutes:

%xcore_top_xshop_sellers_<currency>_<rank>_name%
%xcore_top_xshop_sellers_<currency>_<rank>_value%
%xcore_top_xshop_buyers_<currency>_<rank>_name%
%xcore_top_xshop_buyers_<currency>_<rank>_value%

With a currency named coins, %xcore_top_xshop_sellers_coins_1_name% is the best seller and %xcore_top_xshop_sellers_coins_1_value% what they earned, written short (12.5k); _raw gives the number as it is and _uuid the player's UUID. Another plugin's economy is the currency vault. The totals count every trade since XShop was installed, on every server that shares the database.