From a020710dd04a379eabc8e0f2a4d4d8f6979695f7 Mon Sep 17 00:00:00 2001 From: Andrew121410 Date: Fri, 24 Nov 2023 16:34:01 -0500 Subject: [PATCH] Tiny fix for custom bottom button in LastJoinCMD --- .../mc/world16essentials/commands/playertime/LastJoinCMD.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/andrew121410/mc/world16essentials/commands/playertime/LastJoinCMD.java b/src/main/java/com/andrew121410/mc/world16essentials/commands/playertime/LastJoinCMD.java index 6921faea..550b228b 100644 --- a/src/main/java/com/andrew121410/mc/world16essentials/commands/playertime/LastJoinCMD.java +++ b/src/main/java/com/andrew121410/mc/world16essentials/commands/playertime/LastJoinCMD.java @@ -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("Search!"), Translate.miniMessage("Name/s to search for")), Translate.miniMessage("Name/s to search for"), null, (player1, toFilter) -> {