	protected boolean isPlayerProtected(String playername)
	{
		if (System.currentTimeMillis() - playerprotecttime.get(playername) > config.protecttime)
		{
			unprotectPlayer(playername);
		}
		Player player = Bukkit.getPlayerExact(playername);
		try {
			List<String> aregions = WGBukkit.getRegionManager(player.getWorld()).getApplicableRegionsIDs(BukkitUtil.toVector(player.getLocation()));
			for (String region : aregions)
			{
				if (config.disabledegions.contains(region))
				{
					return false;
				}
			}
		} catch (Exception e) {}
		return playerprotecttime.containsKey(playername);
	}

	protected boolean isPlayerProtected(String playername)
	{
		if (playerprotecttime.containsKey(playername) && System.currentTimeMillis() - playerprotecttime.get(playername) > config.protecttime)
		{
			unprotectPlayer(playername);
		}
		Player player = Bukkit.getPlayerExact(playername);
		try {
			List<String> aregions = WGBukkit.getRegionManager(player.getWorld()).getApplicableRegionsIDs(BukkitUtil.toVector(player.getLocation()));
			for (String region : aregions)
			{
				if (config.disabledegions.contains(region))
				{
					return false;
				}
			}
		} catch (Exception e) {}
		return playerprotecttime.containsKey(playername);
	}
