Archiviert
1
0
Dieser Commit ist enthalten in:
Lixfel 2020-02-11 18:01:52 +01:00
Ursprung f109bf35c8
Commit c68436e1ea
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -83,7 +83,7 @@ public class SQL {
private static PreparedStatement prepare(Connection connection, String qry, Object... objects) throws SQLException{ private static PreparedStatement prepare(Connection connection, String qry, Object... objects) throws SQLException{
PreparedStatement st = connection.prepareStatement(qry); PreparedStatement st = connection.prepareStatement(qry);
for(int i = 0; i < objects.length; i++){ for(int i = 0; i < objects.length; i++){
st.setObject(i+1, objects); st.setObject(i+1, objects[i]);
} }
return st; return st;
} }

Datei anzeigen

@ -75,7 +75,7 @@ public class SteamwarUser {
public static SteamwarUser get(UUID uuid){ public static SteamwarUser get(UUID uuid){
if(usersByUUID.containsKey(uuid)) if(usersByUUID.containsKey(uuid))
return usersByUUID.get(uuid); return usersByUUID.get(uuid);
return dbInit(SQL.select("SELECT * FROM UserData WHERE UUID = '?'", uuid.toString())); return dbInit(SQL.select("SELECT * FROM UserData WHERE UUID = ?", uuid.toString()));
} }
public static SteamwarUser get(ProxiedPlayer player){ public static SteamwarUser get(ProxiedPlayer player){