geforkt von SteamWar/BungeeCore
Hotfix SQL
Dieser Commit ist enthalten in:
Ursprung
f109bf35c8
Commit
c68436e1ea
@ -83,7 +83,7 @@ public class SQL {
|
||||
private static PreparedStatement prepare(Connection connection, String qry, Object... objects) throws SQLException{
|
||||
PreparedStatement st = connection.prepareStatement(qry);
|
||||
for(int i = 0; i < objects.length; i++){
|
||||
st.setObject(i+1, objects);
|
||||
st.setObject(i+1, objects[i]);
|
||||
}
|
||||
return st;
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ public class SteamwarUser {
|
||||
public static SteamwarUser get(UUID uuid){
|
||||
if(usersByUUID.containsKey(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){
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren