@Override
	public boolean processButtonClick(int interfaceId, int componentId,
			int slotId, int packetId) {
		switch (interfaceId) {
		case 271:
			if (player.getDuelConfigurations().getRule(5)) {
				player.getPackets().sendGameMessage(
						"You can't use prayers in this duel.");
				return false;
			}
			return true;
		case 193:
		case 430:
		case 192:
			if (player.getDuelConfigurations().getRule(2))
				return false;
			return true;
		case 884:
			switch (componentId) {
			case 4:
				if (player.getDuelConfigurations().getRule(9)) {
					player.getPackets().sendGameMessage(
							"You can't use special attacks in this duel.");
					return false;
				}
				return true;
			}
			return true;
		}
		return true;
	}