From cc86aa16a05a7ee8f68cee737a2ba2074b7dabe5 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 26 Apr 2022 15:21:09 +0200 Subject: [PATCH] Update stuff --- src/de/steamwar/bungeecore/commands/WhoisCommand.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/WhoisCommand.java b/src/de/steamwar/bungeecore/commands/WhoisCommand.java index 10c0316..da6a631 100644 --- a/src/de/steamwar/bungeecore/commands/WhoisCommand.java +++ b/src/de/steamwar/bungeecore/commands/WhoisCommand.java @@ -97,10 +97,6 @@ public class WhoisCommand extends BasicCommand { Message.send("WHOIS_PUNISHMENTS", player); List punishmentList = Punishment.getAllPunishmentsOfPlayer(user.getId()); - if (punishmentList.isEmpty()) { - Message.send(all ? "WHOIS_NO_ALL_PUNISHMENT" : "WHOIS_NO_PUNISHMENT", player); - return; - } Set found = new HashSet<>(); boolean isPunished = false; for (Punishment punishment : punishmentList) { @@ -110,8 +106,8 @@ public class WhoisCommand extends BasicCommand { Message.sendPrefixless("WHOIS_PUNISHMENT", player, SteamwarUser.get(punishment.getPunisher()).getUserName(), punishment.getType().name(), punishment.getBantime(punishment.getStartTime(), false), punishment.getBantime(punishment.getEndTime(), punishment.isPerma()), punishment.getReason()); isPunished = true; } - if (!all && !isPunished) { - Message.send("WHOIS_NO_PUNISHMENT", player); + if (!isPunished) { + Message.send(all ? "WHOIS_NO_ALL_PUNISHMENT" : "WHOIS_NO_PUNISHMENT", player); } } }