geforkt von SteamWar/BungeeCore
Update stuff
Dieser Commit ist enthalten in:
Ursprung
2ef6901f8e
Commit
cc86aa16a0
@ -97,10 +97,6 @@ public class WhoisCommand extends BasicCommand {
|
||||
|
||||
Message.send("WHOIS_PUNISHMENTS", player);
|
||||
List<Punishment> punishmentList = Punishment.getAllPunishmentsOfPlayer(user.getId());
|
||||
if (punishmentList.isEmpty()) {
|
||||
Message.send(all ? "WHOIS_NO_ALL_PUNISHMENT" : "WHOIS_NO_PUNISHMENT", player);
|
||||
return;
|
||||
}
|
||||
Set<Punishment.PunishmentType> 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren