Add amount of shops to tooltip in SearchShopsDialog
This commit is contained in:
parent
e7886b5e83
commit
ce2b8deef9
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user