EpicZone srcZone = General.myZones.get(tag);
if (srcZone != null)
{
for (String permTag : srcZone.getPermissions().keySet())
{
EpicZonePermission perm = srcZone.getPermissions().get(permTag);
ezp.getEditZone().addPermission(perm.getMember(), perm.getNode().toString(), perm.getPermission().toString());
}
Message.Send(sender, Message_ID.Info_00128_CopiedPermissions, new String[]{tag});
}
else
{
Message.Send(sender, Message_ID.Warning_00117_Zone_X_DoesNotExist, new String[]{tag});
}
}
else if (cmd.equalsIgnoreCase("clear"))
{
ArrayList<EpicZonePermission> remPerms = new ArrayList<EpicZonePermission>();
for (String permTag : ezp.getEditZone().getPermissions().keySet())
{
EpicZonePermission perm = ezp.getEditZone().getPermissions().get(permTag);
if (perm.getMember().equalsIgnoreCase(tag))
{
remPerms.add(perm);
}
}
for (EpicZonePermission perm : remPerms)
{
ezp.getEditZone().removePermission(perm.getMember(), perm.getNode().toString(), perm.getPermission().toString());
}
Message.Send(sender, Message_ID.Info_00129_PermissionsClearedFor_X, new String[]{tag});
}
}
else if (data.length > 1)