GrzybcioRynek

Placeholdery

Osiem placeholderów PlaceholderAPI — ekspansja grybciorynek, cache 20 ticków.

Kompatybilne z: GrzybcioRynek 1.0.3Minecraft 26.2Web 0.1.0

Na podstawie kodu GrzybcioRynek 1.0.3 i web 0.1.0.

Wymaga zainstalowanego PlaceholderAPI. Bez niego plugin działa, ekspansja się nie rejestruje. Soft-depend w plugin.yml.

Identyfikator: grybciorynek (PlaceholderHook.getIdentifier()). Autor: Grzybcio. Wersja = plugin.getPluginMeta().getVersion() (1.0.3). persist() = true.

Log przy starcie: Zarejestrowano placeholdery PlaceholderAPI.

Lista (wszystkie 8)

PlaceholderŹródłoFormat
%grybciorynek_active_listings%StatsManager.getActiveListings()liczba
%grybciorynek_player_listings%aktywne oferty graczaliczba; brak gracza → 0
%grybciorynek_total_sales%getSellerHistory(uuid).size()liczba zakończonych sprzedaży
%grybciorynek_total_spent%getPlayerSpentVaultHook.format
%grybciorynek_total_earned%getPlayerEarned (netto sellerReceived)VaultHook.format
%grybciorynek_market_volume%suma price TX COMPLETEDVaultHook.format
%grybciorynek_mailbox_count%liczba wpisów skrzynkiliczba
%grybciorynek_rating%średnia ocen sprzedawcy%.1f (np. 4.5); brak gracza → 0

Inny paramsnull (PAPI nie podstawia). params jest porównywany toLowerCase().

Cache

Timer na głównym wątku co 20 ticków (1 s): odświeża active_listings, market_volume i statystyki UUID obecnych w playerCache. Pierwsze żądanie gracza woła computeIfAbsentbuildPlayerStats.

Przykład

Example
text
Oferty: %grybciorynek_player_listings%
Obrót serwera: %grybciorynek_market_volume%
Skrzynka: %grybciorynek_mailbox_count%
Ocena: %grybciorynek_rating%

Źródło w repo: PLugin/PLACEHOLDERS.md i hooks/PlaceholderHook.java.