From 09c9ffe1bf298b6ea30f005581c71b3c524090bf Mon Sep 17 00:00:00 2001 From: A248 Date: Fri, 12 Apr 2024 09:42:10 -0500 Subject: [PATCH] Fix longstanding bug of not showing the no-pages message Thanks to Nik2810 for reporting over Discord --- .../java/space/arim/libertybans/core/commands/ListCommands.java | 2 +- bans-core/src/main/resources/contributors | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bans-core/src/main/java/space/arim/libertybans/core/commands/ListCommands.java b/bans-core/src/main/java/space/arim/libertybans/core/commands/ListCommands.java index 98cf20b61..e9d255c2e 100644 --- a/bans-core/src/main/java/space/arim/libertybans/core/commands/ListCommands.java +++ b/bans-core/src/main/java/space/arim/libertybans/core/commands/ListCommands.java @@ -228,7 +228,7 @@ private String replaceTargetIn(String str) { } private void noPunishmentsOnThisPage(int page) { - if (page == 0) { // No pages whatsoever + if (page == 1) { // No pages whatsoever ComponentText noPages = section.noPages(); ComponentLike message = (target == null) ? noPages : noPages.replaceText("%TARGET%", target); sender().sendMessage(message); diff --git a/bans-core/src/main/resources/contributors b/bans-core/src/main/resources/contributors index 62ad967c7..3e0ae8a7a 100644 --- a/bans-core/src/main/resources/contributors +++ b/bans-core/src/main/resources/contributors @@ -40,6 +40,7 @@ LaurenceBarnes MattVid mcmdev Michael Sykes +Nik2810 Notro ox PasteDev