Small bugfix
Dieser Commit ist enthalten in:
Ursprung
2e63e8fa15
Commit
c945023f8c
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren