Package com.nijiko.permissions

Examples of com.nijiko.permissions.Group



  @Override
  void removeGroup(String playerName, Player worldReference, String startingGroup) {
    User user = ph.getUserObject(worldReference.getWorld().getName(), playerName);
    Group firstGroup = ph.getGroupObject(worldReference.getWorld().getName(), startingGroup);
    user.removeParent(firstGroup);   
  }
View Full Code Here



  @Override
  void addGroup(String playerName, Player worldReference, String endingGroup) {
    User user = ph.getUserObject(worldReference.getWorld().getName(), playerName);
    Group firstGroup = ph.getGroupObject(worldReference.getWorld().getName(), endingGroup);
    user.addParent(firstGroup);
  }
View Full Code Here

    public boolean playerAddGroup(String worldName, String playerName, String groupName) {
        if (worldName == null) {
            worldName = "*";
        }

        Group g = perms.getGroupObject(worldName, groupName);
        if (g == null) {
            return false;
        }
        try {
            perms.safeGetUser(worldName, playerName).addParent(g);
View Full Code Here

    public boolean playerRemoveGroup(String worldName, String playerName, String groupName) {
        if (worldName == null) {
            worldName = "*";
        }

        Group g = perms.getGroupObject(worldName, groupName);
        if (g == null) {
            return false;
        }
        try {
            perms.safeGetUser(worldName, playerName).removeParent(g);
View Full Code Here

TOP

Related Classes of com.nijiko.permissions.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.