diff --git a/core/src/main/java/me/blvckbytes/quick_shop_search/cache/CachedShop.java b/core/src/main/java/me/blvckbytes/quick_shop_search/cache/CachedShop.java index 4a41b84..2300e6b 100644 --- a/core/src/main/java/me/blvckbytes/quick_shop_search/cache/CachedShop.java +++ b/core/src/main/java/me/blvckbytes/quick_shop_search/cache/CachedShop.java @@ -39,8 +39,8 @@ public CachedShop( this.shopEnvironment = new EvaluationEnvironmentBuilder() .withLiveVariable("owner", handle.getOwner()::getDisplay) - .withLiveVariable("name", () -> shopManager.format(handle.getPrice(), handle)) - .withLiveVariable("price", handle::getPrice) + .withLiveVariable("name", handle::getShopName) + .withLiveVariable("price", () -> shopManager.format(handle.getPrice(), handle)) .withLiveVariable("item_type", () -> formatItemType(handle.getItem())) .withLiveVariable("remaining_stock", () -> this.cachedStock) .withLiveVariable("remaining_space", () -> this.cachedSpace) diff --git a/core/src/main/resources/config/config.yml b/core/src/main/resources/config/config.yml index 205a71a..ced316a 100644 --- a/core/src/main/resources/config/config.yml +++ b/core/src/main/resources/config/config.yml @@ -66,7 +66,7 @@ resultDisplay: - '@{ANY-CONTROL-LORE-SPACER}' - '@{REPRESENTATIVE-LORE-OWNER}' - 'if name != null then @{REPRESENTATIVE-LORE-NAME} else null' - - '@{REPRESENTATIVE-LORE-PRICE(currency=currency ?? "")}' + - '@{REPRESENTATIVE-LORE-PRICE}' - | if is_buying then @{REPRESENTATIVE-LORE-REMAINING-SPACE(remaining_space=if is_unlimited then "∞" else remaining_space)}