private static boolean testPerms(EpicZonePlayer player, EpicZone zone, String flag)
{
boolean result = getDefaultPerm(flag);
String group = EpicZones.permissions.getGroup(player.getName());
EpicZonePermission p;
p = zone.getPermission(group);
if(p == null)
{
p = zone.getPermission(player.getName());
}
if(p != null)
{
//We know permissions are defined for the player, reset the result to false, so that if permissions are not granted, they can be denied.
result = false;
Map<String,String> flags = p.getPermissionFlags();
if(flags.containsKey(flag) &&
flags.get(flag).equalsIgnoreCase("allow"))
{
result = true;