1
mirror of https://github.com/Shiewk/SModeration.git synced 2026-04-28 05:54:16 +02:00

Add sorting and filter options for SMod Menu

This commit is contained in:
Shy
2024-06-08 16:08:23 +02:00
parent 1f85d65bdd
commit c65781b7bd
4 changed files with 158 additions and 7 deletions
@@ -10,7 +10,7 @@ public class CustomInventoryEvents implements Listener {
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
public void onInventoryClick(InventoryClickEvent event){
if (event.getInventory().getHolder() instanceof CustomInventory customInventory){
customInventory.click(event.getCurrentItem());
customInventory.click(event.getCurrentItem(), event);
event.setCancelled(true);
}
}