Package com.nijiko.permissions

Examples of com.nijiko.permissions.User




  @Override
  ArrayList<String> getGroupName(String playerName, Player worldReference) {
    User user = ph.getUserObject(worldReference.getWorld().getName(), playerName);
    LinkedHashSet<Entry> group = user.getParents();
    ArrayList<String> str = new ArrayList<String>();
    for(Entry g: group)
      str.add(0, g.getName());
    return str;
  }
View Full Code Here




  @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

TOP

Related Classes of com.nijiko.permissions.User

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.