Small bugfix
Dieser Commit ist enthalten in:
Ursprung
2e63e8fa15
Commit
c945023f8c
@ -34,7 +34,8 @@ public class WarkingUser {
|
||||
|
||||
private void init(ResultSet dbplayer){
|
||||
try {
|
||||
dbplayer.next();
|
||||
if(!dbplayer.next())
|
||||
return;
|
||||
id = dbplayer.getInt("id");
|
||||
this.UUID = java.util.UUID.fromString(dbplayer.getString("UUID"));
|
||||
UserName = dbplayer.getString("UserName");
|
||||
@ -66,7 +67,6 @@ public class WarkingUser {
|
||||
if(user.UserName.equalsIgnoreCase(userName))
|
||||
return user;
|
||||
WarkingUser offline = new WarkingUser(userName);
|
||||
allUsers.remove(offline);
|
||||
return offline;
|
||||
}
|
||||
|
||||
@ -75,7 +75,6 @@ public class WarkingUser {
|
||||
if(user.UserName.equals(uuid))
|
||||
return user;
|
||||
WarkingUser offline = new WarkingUser(uuid);
|
||||
allUsers.remove(offline);
|
||||
return offline;
|
||||
}
|
||||
|
||||
@ -84,7 +83,6 @@ public class WarkingUser {
|
||||
if(user.id == id)
|
||||
return user;
|
||||
WarkingUser offline = new WarkingUser(id);
|
||||
allUsers.remove(offline);
|
||||
return offline;
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren