SteamWar/SpigotCore
Archiviert
13
0

Update SWCommandUtils SteamwarUser mapper
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2021-12-09 18:01:49 +01:00
Ursprung 17fdb34473
Commit cd8d2a8b42

Datei anzeigen

@ -107,11 +107,9 @@ public class SteamwarUser {
List<SteamwarUser> steamwarUsers = new ArrayList<>(); List<SteamwarUser> steamwarUsers = new ArrayList<>();
while (rs.next()) { while (rs.next()) {
String name = rs.getString("UserName"); String name = rs.getString("UserName");
if (byName.containsKey(name)) { SteamwarUser user = byName.get(name.toLowerCase());
steamwarUsers.add(byName.get(name)); if (user == null) user = new SteamwarUser(rs);
} else { steamwarUsers.add(user);
steamwarUsers.add(new SteamwarUser(rs));
}
} }
return steamwarUsers; return steamwarUsers;
}, userName.toLowerCase() + "%"); }, userName.toLowerCase() + "%");