@EventHandler
	public void onTarget(EntityTargetEvent event) {
		if (!event.isCancelled()) {
			if (event.getTarget() instanceof Player) {
				Player player = (Player) event.getTarget();
				if (plugin.disguiseDB.containsKey(player.getName())) {
					if (player.hasPermission("disguisecraft.notarget")) {
						if (player.hasPermission("disguisecraft.notarget.strict")) {
							event.setCancelled(true);
						} else {
							if (!plugin.disguiseDB.get(player.getName()).type.isPlayer() && (event.getReason() == TargetReason.CLOSEST_PLAYER || event.getReason() == TargetReason.RANDOM_TARGET)) {
								event.setCancelled(true);
							}
						}
					}
				}
			}
		}
	}