Placeholders
Eight PlaceholderAPI placeholders — grybciorynek expansion, 20-tick cache.
Based on GrzybcioRynek 1.0.3 and web 0.1.0 source.
Requires PlaceholderAPI installed. Without it the plugin runs; the expansion is not registered. Soft-depend in plugin.yml.
Identifier: grybciorynek (PlaceholderHook.getIdentifier()). Author: Grzybcio. Version = plugin.getPluginMeta().getVersion() (1.0.3). persist() = true.
Startup log: Zarejestrowano placeholdery PlaceholderAPI.
List (all 8)
| Placeholder | Source | Format |
|---|---|---|
%grybciorynek_active_listings% | StatsManager.getActiveListings() | number |
%grybciorynek_player_listings% | player’s active listings | number; no player → 0 |
%grybciorynek_total_sales% | getSellerHistory(uuid).size() | completed sales count |
%grybciorynek_total_spent% | getPlayerSpent | VaultHook.format |
%grybciorynek_total_earned% | getPlayerEarned (net sellerReceived) | VaultHook.format |
%grybciorynek_market_volume% | sum of COMPLETED TX price | VaultHook.format |
%grybciorynek_mailbox_count% | mailbox entry count | number |
%grybciorynek_rating% | seller average rating | %.1f (e.g. 4.5); no player → 0 |
Other params → null (PAPI does not substitute). params is compared with toLowerCase().
Cache
Timer on the main thread every 20 ticks (1 s): refreshes active_listings, market_volume, and UUID stats present in playerCache. First request for a player calls computeIfAbsent → buildPlayerStats.
Example
Listings: %grybciorynek_player_listings%
Server volume: %grybciorynek_market_volume%
Mailbox: %grybciorynek_mailbox_count%
Rating: %grybciorynek_rating%Source in repo: PLugin/PLACEHOLDERS.md and hooks/PlaceholderHook.java.