SteamWar/BungeeCore
Archiviert
13
2

Hotfix getOrCreate SQLExceptions

Dieser Commit ist enthalten in:
Lixfel 2020-02-21 16:26:14 +01:00
Ursprung c6f23876e3
Commit 114fac5bd7

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() + "'")); //Fix getOrCreate exceptions for first time users
} }
public static SteamwarUser get(ProxiedPlayer player){ public static SteamwarUser get(ProxiedPlayer player){