Skip to content

Commit

Permalink
print different chat message when using /nocheaters reportlist and th…
Browse files Browse the repository at this point in the history
…e report list is empty
  • Loading branch information
Alexdoru committed Mar 25, 2024
1 parent 86a0576 commit e0a1498
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ private void printReportList(String[] args) {
nbreport++;
}

if (sortedMap.isEmpty()) {
ChatUtil.addChatMessage(EnumChatFormatting.GREEN + "You have no one reported!");
return;
}

if (warning) {
ChatUtil.addChatMessage(EnumChatFormatting.RED + "No reports to display, " + nbpage + " page" + (nbpage == 1 ? "" : "s") + " available.");
return;
Expand Down

0 comments on commit e0a1498

Please sign in to comment.