Package com.bukkit.jblaske.EpicZones

Examples of com.bukkit.jblaske.EpicZones.EpicZonePermission


  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;
View Full Code Here

TOP

Related Classes of com.bukkit.jblaske.EpicZones.EpicZonePermission

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.