Player p =new Player(loginMessage.getLoginName(), loginMessage.getID(), (String) source.getAttribute("UUID"));
System.out.println("Client connected! username: " + loginMessage.getLoginName() + " ip: " + source.getAddress() );
gameServer.getPlayerList().add(p);
source.getServer().getConnection(source.getId()).send(new PlayerMessage(loginMessage.getLoginName(),loginMessage.getID(),p.getUUID()));
//gameServer.getMyServer().broadcast(Filters.notEqualTo(source), new LoginMessage(loginMessage.getLoginName(), null, loginMessage.getID(), p.getUUID()));
gameServer.getMyServer().broadcast(new ChatClientMessage("BenkyouServer", p.getName() + " Has joined the server!"));
gameServer.syncPlayers();
}
}