public int getDeletePercentage(Player player) {

		if (plugin.getWorldGuardClass().isWorldGuardReady()) {
			RegionManager regionManager = wgPlugin.getRegionManager(player
					.getWorld());
			if (regionManager != null) {
				ApplicableRegionSet set = regionManager
						.getApplicableRegions(player.getLocation());
				if (set != null) {
					if (set.getFlag(DELETE_PERCENTAGE) != null) {
						return set.getFlag(DELETE_PERCENTAGE);
					}
				}
			}
		}
		String group = plugin.getFiles().getGroup(player);

		if (group == null)
			return plugin.getConfig().getInt("Default values.delete percentage", 50);
		else
			return plugin.getConfig().getInt(
					"Groups." + group + ".delete percentage");
	}