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<>();
while (rs.next()) {
String name = rs.getString("UserName");
if (byName.containsKey(name)) {
steamwarUsers.add(byName.get(name));
} else {
steamwarUsers.add(new SteamwarUser(rs));
}
SteamwarUser user = byName.get(name.toLowerCase());
if (user == null) user = new SteamwarUser(rs);
steamwarUsers.add(user);
}
return steamwarUsers;
}, userName.toLowerCase() + "%");