Commit 0d8193fc authored by dkonam's avatar dkonam
Browse files

Data | fix users

parent 00037e41
......@@ -377,7 +377,9 @@ public class UserMediator {
this.mapConnectedUser.clear();
try {
if(this.dataFacade.getIhmMainFacade()!=null){
this.dataFacade.getIhmMainFacade().refreshUserList();
}
} catch (IOException ex) {
Logger.getLogger(UserMediator.class.getName()).log(Level.SEVERE, null, ex);
}
......
......@@ -119,14 +119,15 @@ public abstract class Game extends SerializableEntity {
if (role.equals("player")) {
if (this.players.size() <= 1) {
Player player = new Player(user);
this.players.add(player);
System.out.println("ADD AS USER "+user.getPlayerName());
}
} else if (this.getStatGame().isSpectator() && role.equals("spectator")) {
System.out.println("SPECTATOR "+user.getPlayerName());
System.out.println("ADD AS SPECTATOR "+user.getPlayerName());
this.spectators.add(user);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment