diff --git a/src/de/steamwar/sql/SteamwarUser.java b/src/de/steamwar/sql/SteamwarUser.java index 4ca191f..254857f 100644 --- a/src/de/steamwar/sql/SteamwarUser.java +++ b/src/de/steamwar/sql/SteamwarUser.java @@ -147,15 +147,10 @@ public class SteamwarUser { } private static List loadPunishments(List users) { - users.forEach(user -> user.punishments = Punishment.getPunishmentsOfPlayer(user.getId())); return users; } private static SteamwarUser loadPunishments(SteamwarUser user) { - if(user == null) - return null; - - user.punishments = Punishment.getPunishmentsOfPlayer(user.getId()); return user; }