Skip to content

Commit

Permalink
Tiny fix for custom bottom button in LastJoinCMD
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew121410 committed Nov 24, 2023
1 parent 671855d commit a020710
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ private void makeGUIButtons(PaginatedGUIMultipageListWindow gui, Player player,
boolean hasNextPage = chunks.size() > pageNumber + 1;
boolean hasPreviousPage = pageNumber > 0;

// Clear custom bottom buttons
gui.getCustomBottomButtons().clear();

// Add search button if there is no filter
if (filter == null) {
CloneableGUIButton cloneableGUIButton = new ChatResponseButton(50, InventoryUtils.createItem(Material.COMPASS, 1, Translate.miniMessage("<dark_green>Search!"), Translate.miniMessage("<blue>Name/s to search for")), Translate.miniMessage("<blue>Name/s to search for"), null, (player1, toFilter) -> {
Expand Down

0 comments on commit a020710

Please sign in to comment.