SteamWar/SpigotCore
Archiviert
13
0
Dieser Commit ist enthalten in:
Lixfel 2019-03-27 14:50:56 +01:00
Ursprung 2e63e8fa15
Commit c945023f8c

Datei anzeigen

@ -34,7 +34,8 @@ public class WarkingUser {
private void init(ResultSet dbplayer){ private void init(ResultSet dbplayer){
try { try {
dbplayer.next(); if(!dbplayer.next())
return;
id = dbplayer.getInt("id"); id = dbplayer.getInt("id");
this.UUID = java.util.UUID.fromString(dbplayer.getString("UUID")); this.UUID = java.util.UUID.fromString(dbplayer.getString("UUID"));
UserName = dbplayer.getString("UserName"); UserName = dbplayer.getString("UserName");
@ -66,7 +67,6 @@ public class WarkingUser {
if(user.UserName.equalsIgnoreCase(userName)) if(user.UserName.equalsIgnoreCase(userName))
return user; return user;
WarkingUser offline = new WarkingUser(userName); WarkingUser offline = new WarkingUser(userName);
allUsers.remove(offline);
return offline; return offline;
} }
@ -75,7 +75,6 @@ public class WarkingUser {
if(user.UserName.equals(uuid)) if(user.UserName.equals(uuid))
return user; return user;
WarkingUser offline = new WarkingUser(uuid); WarkingUser offline = new WarkingUser(uuid);
allUsers.remove(offline);
return offline; return offline;
} }
@ -84,7 +83,6 @@ public class WarkingUser {
if(user.id == id) if(user.id == id)
return user; return user;
WarkingUser offline = new WarkingUser(id); WarkingUser offline = new WarkingUser(id);
allUsers.remove(offline);
return offline; return offline;
} }