Package de.bananaco.permissions.info

Examples of de.bananaco.permissions.info.InfoReader


      pm = new WorldPermissionsManager(this);

    pm.engage();

    if (info == null)
      info = new InfoReader();

    info.instantiate();
    PermissionsPlayerListener pl = new PermissionsPlayerListener(this);

    getServer().getPluginManager().registerEvent(
View Full Code Here


  @Override
  public void onLoad() {
    pm = new WorldPermissionsManager(this);
    perm = pm;
    info = new InfoReader();
    PermissionBridge.loadPseudoPlugin(this, getClassLoader());
  }
View Full Code Here

     
      String group = "", user = "";
        Player player = plugin.getServer().getPlayer(resident.getName());
       
        //PermissionSet bPermPM = Permissions.getWorldPermissionsManager().getPermissionSet(player.getWorld());
        InfoReader bPermIR = Permissions.getInfoReader();
       
        if (node == "prefix") {
          group = bPermIR.getGroupPrefix(getPlayerGroup(player), player.getWorld().getName());
          user = bPermIR.getPrefix(player);
        } else if (node == "suffix") {
          group = bPermIR.getGroupSuffix(getPlayerGroup(player), player.getWorld().getName());
          user = bPermIR.getSuffix(player);
        }
        if (group == null) group = "";
        if (user == null) user = "";
     
      if (!group.equals(user))
View Full Code Here

     */
    @Override
    public int getGroupPermissionIntNode(String playerName, String node) {
      Player player = plugin.getServer().getPlayer(playerName);
   
    InfoReader bPermIR = Permissions.getInfoReader();
   
    String result = bPermIR.getValue(player, node);
   
    try {
      return Integer.parseInt(result);
    } catch (NumberFormatException e) {
      return -1;
View Full Code Here

     */
    @Override
    public String getPlayerPermissionStringNode(String playerName, String node) {
      Player player = plugin.getServer().getPlayer(playerName);
   
    InfoReader bPermIR = Permissions.getInfoReader();
   
    String result =  bPermIR.getValue(player, node);
        
    if (result == null)
      return "";
   
    return result;
View Full Code Here

TOP

Related Classes of de.bananaco.permissions.info.InfoReader

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.