@Override
	public void received(Connection connection, Object object)
	{
		if(object instanceof LoginAccepted)
		{
			this.loggedIn = true;
			LoginAccepted data = (LoginAccepted) object;
			client.setTick(data.tick);
			connection.sendTCP(new LoginAccepted());
		}
		else 
		{
			this.client.serverMessages.add(object);
		}
	}