Add amount of shops to tooltip in SearchShopsDialog

This commit is contained in:
Len 2026-08-06 08:15:20 -05:00
parent e7886b5e83
commit ce2b8deef9

View File

@ -59,6 +59,11 @@ public class SearchShopsDialog extends AbstractDialog {
for (Map.Entry<Material, List<PlayerShop>> entry : PlayerShops.getInstance().getShopHandler().shopByMaterial().entrySet()) {
actions.add(ActionButton.builder(ShopUtil.spriteComponent(entry.getKey()))
.tooltip(
MiniMessage.miniMessage().deserialize(
entry.getValue().size() + "<green> Shops"
)
)
.action(
DialogAction.customClick((view, audience) -> {
if (!(audience instanceof Player player)) {