public void setState(boolean active) {
		if(c == null) {
			System.out.println("[DcClient " + alias +"] Can not switch states without being connected to a server.");
			return;
		}
		if(isActive == active) {
			System.out.println("[DcClient " + alias +"] This client is already in " + (isActive?"active":"idle") + " state.");
		} else if(active) {
			NetStatPackage nsp = new NetStatPackage.Joining(alias);
			broadcast(nsp);
		} else {
			NetStatPackage nsp = new NetStatPackage.Leaving(alias);
			broadcast(nsp);
		}
	}