Package org.anjocaido.groupmanager.data

Examples of org.anjocaido.groupmanager.data.Group


            owh = groupManager.getWorldsHolder().getWorldData(worldName);
        }
        if (owh == null) {
            return;
        }
        Group group = owh.getGroup(groupName);
        if (group == null) {
            return;
        }
        group.getVariables().addVar(node, value);
    }
View Full Code Here


        }
        if (owh == null) {
            return false;
        }

        Group group = owh.getGroup(groupName);
        if (group == null) {
            return false;
        }

        return group.hasSamePermissionNode(permission);
    }
View Full Code Here

        }
        if (owh == null) {
            return false;
        }

        Group group = owh.getGroup(groupName);
        if (group == null) {
            return false;
        }

        group.addPermission(permission);
        return true;
    }
View Full Code Here

        }
        if (owh == null) {
            return false;
        }

        Group group = owh.getGroup(groupName);
        if (group == null) {
            return false;
        }

        group.removePermission(permission);
        return true;
    }
View Full Code Here

        }
        User user = owh.getUser(playerName);
        if (user == null) {
            return false;
        }
        Group group = owh.getGroup(groupName);
        if (group == null) {
            return false;
        }
        if (user.getGroup().equals(owh.getDefaultGroup())) {
            user.setGroup(group);
        } else if (group.getInherits().contains(user.getGroup().getName().toLowerCase())) {
            user.setGroup(group);
        } else {
            user.addSubGroup(group);
        }
        Player p = Bukkit.getPlayer(playerName);
View Full Code Here

        boolean success = false;
        if (user.getGroup().getName().equalsIgnoreCase(groupName)) {
            user.setGroup(owh.getDefaultGroup());
            success = true;
        } else {
            Group group = owh.getGroup(groupName);
            if (group != null) {
                success = user.removeSubGroup(group);
            }
        }
        if (success) {
View Full Code Here

 
          }
        } else if (event instanceof GMGroupEvent) {
          if (PermissionEventEnums.GMGroup_Action.valueOf(event.getEventName()) != null) {
            GMGroupEvent GroupEvent = (GMGroupEvent) event;
            Group group = GroupEvent.getGroup();
            // Update all players who are in this group.
            for (Player toUpdate : TownyUniverse.getOnlinePlayers()) {
              if (group.equals(getPlayerGroup(toUpdate))) {
                //setup default modes
                String[] modes = getPlayerPermissionStringNode(toUpdate.getName(), PermissionNodes.TOWNY_DEFAULT_MODES.getNode()).split(",");
                plugin.setPlayerMode(player, modes, false);
              }
            }
View Full Code Here

TOP

Related Classes of org.anjocaido.groupmanager.data.Group

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.