Package org.anjocaido.groupmanager.permissions

Examples of org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler


      return groups[0].getName();
    }
   
    private String getGManGroup(Player player) {
      if (!ichat.gMan.isEnabled()) return "";
      AnjoPermissionsHandler handler = ichat.gMan.getWorldsHolder().getWorldPermissions(player);
      if (handler == null) return "";
      return handler.getGroup(player.getName());
    }
View Full Code Here


    String group = "", user = "";
    Player player = this.plugin.getServer().getPlayer(resident.getName());

    //sendDebugMsg("    GroupManager installed.");
    AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldData(player).getPermissionsHandler();

    if (node == "prefix") {
      group = handler.getGroupPrefix(handler.getPrimaryGroup(player.getName()));
      user = handler.getUserPrefix(player.getName());
    } else if (node == "suffix") {
      group = handler.getGroupSuffix(handler.getPrimaryGroup(player.getName()));
      user = handler.getUserSuffix(player.getName());
    }

    if (!group.equals(user))
      user = group + user;
    user = TownySettings.parseSingleLineString(user);
View Full Code Here

   */
  @Override
  public int getGroupPermissionIntNode(String playerName, String node) {
    Player player = plugin.getServer().getPlayer(playerName);

    AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldData(player).getPermissionsHandler();
    return handler.getPermissionInteger(playerName, node);

  }
View Full Code Here

   */
  @Override
  public String getPlayerPermissionStringNode(String playerName, String node) {
    Player player = plugin.getServer().getPlayer(playerName);

    AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldData(player).getPermissionsHandler();

    return handler.getPermissionString(playerName, node);

  }
View Full Code Here

  public boolean hasPermission(Player player, String node) {
   
    if (player.isOp())
        return true;
   
    AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldData(player).getPermissionsHandler();
    return handler.has(player, node);
  }
View Full Code Here

   * @param player
   * @return name of players group
   */
  @Override
  public String getPlayerGroup(Player player) {
    AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldData(player).getPermissionsHandler();
    return handler.getGroup(player.getName());
  }
View Full Code Here

TOP

Related Classes of org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler

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.