Examples of UserIdent


Examples of com.forgeessentials.util.UserIdent

      if (un.replaceAll("\"", "").equalsIgnoreCase(player.getPersistentID().toString()))
      {
        return true;
      }
    }
    for (String group : APIRegistry.perms.getPlayerGroups(new UserIdent(player)))
    {
      if (exempt_groups.contains(group))
      {
        return true;
      }
View Full Code Here

Examples of com.forgeessentials.util.UserIdent

    else if (args.length == 2)
    {
      if (args[0].equalsIgnoreCase("add"))
      {
        APIRegistry.perms.getServerZone().setPlayerPermission(new UserIdent(args[1]), "fe.auth.whitelist", true);
      }
      else if (args[0].equalsIgnoreCase("remove"))
      {
        APIRegistry.perms.getServerZone().setPlayerPermission(new UserIdent(args[1]), "fe.auth.whitelist", false);
      }
    }
  }
View Full Code Here

Examples of com.forgeessentials.util.UserIdent

    @Override
    public void processCommand(ICommandSender sender, String[] args)
    {
        if (args.length >= 2 && args[0].equalsIgnoreCase("add"))
        {
            APIRegistry.perms.setPlayerPermission(new UserIdent(args[1]), "fe.auth.vip", true);
        }
        else if (args.length >= 2 && args[0].equalsIgnoreCase("remove"))
        {
            APIRegistry.perms.setPlayerPermission(new UserIdent(args[1]), "fe.auth.vip", false);
        }
    }
View Full Code Here

Examples of com.forgeessentials.util.UserIdent

   * @param permissionNode
   * @return permission value or null, if not set
   */
  public String getPlayerPermission(EntityPlayer player, String permissionNode)
  {
    return getPlayerPermission(new UserIdent(player), permissionNode);
  }
View Full Code Here

Examples of com.forgeessentials.util.UserIdent

        if (senderPlayer == null)
        {
            error(FEPermissions.MSG_NO_CONSOLE_COMMAND);
            return;
        }
        listUserPermissions(new UserIdent(senderPlayer));
    }
View Full Code Here

Examples of com.forgeessentials.util.UserIdent

            }
            return;
        }

        String playerName = args.remove();
        UserIdent ident;
        if (playerName.equalsIgnoreCase("_ME_"))
        {
            if (senderPlayer == null)
            {
                error("_ME_ cannot be used in console.");
                return;
            }
            ident = new UserIdent(senderPlayer);
        }
        else
        {
            ident = new UserIdent(playerName);
            if (!ident.hasUUID())
            {
                error(String.format("Player %s not found. playername will be used, but may be inaccurate.", ident.getUsername()));
            }
        }

        parseUserInner(ident, null);
    }
View Full Code Here

Examples of com.forgeessentials.util.UserIdent

            data.capabilities.allowFlying = player.capabilities.allowFlying;
            data.capabilities.isFlying = player.capabilities.isFlying;
            data.capabilities.disableDamage = player.capabilities.disableDamage;
        }

        data.group = APIRegistry.perms.getPrimaryGroup(new UserIdent(player));
        data.firstJoin = pi.getFirstJoin();
        data.timePlayed = pi.getTimePlayed();

        return GSON.toJsonTree(data);
View Full Code Here

Examples of com.forgeessentials.util.UserIdent

        FMLCommonHandler.instance().bus().register(this);
    }

    public static WarpPoint getPlayerSpawn(EntityPlayer player, WorldPoint location)
    {
        UserIdent ident = new UserIdent(player);
        if (location == null)
            location = new WorldPoint(player);
        String spawnProperty = APIRegistry.perms.getPermission(ident, location, null, APIRegistry.perms.getPlayerGroups(ident), FEPermissions.SPAWN, true);
        WorldPoint point = null;
        if (spawnProperty == null)
View Full Code Here

Examples of com.forgeessentials.util.UserIdent

            for (Map<String, Object> permData : userPermissions)
            {
                Zone zone = zones.get(permData.get("zone_id"));
                if (zone != null)
                {
                    zone.setPlayerPermissionProperty(new UserIdent((String) permData.get("user")), (String) permData.get("permission"),
                            (String) permData.get("value"));
                }
            }

            // Load maxZoneId
View Full Code Here

Examples of com.forgeessentials.util.UserIdent

        }

        // replacing stuff...

    // Player info
    String playerPrefix = FunctionHelper.formatColors(FunctionHelper.getPlayerPrefixSuffix(new UserIdent(event.player), false));
    String playerSuffix = FunctionHelper.formatColors(FunctionHelper.getPlayerPrefixSuffix(new UserIdent(event.player), true));
    String groupPrefix = FunctionHelper.formatColors(FunctionHelper.getPlayerGroupPrefixSuffix(new UserIdent(event.player), false));
    String groupSuffix = FunctionHelper.formatColors(FunctionHelper.getPlayerGroupPrefixSuffix(new UserIdent(event.player), true));
    String zoneID = APIRegistry.perms.getZonesAt(new WorldPoint(event.player)).get(0).getName();
    String rank = "";

        // It may be beneficial to make this a public function. -RlonRyan
        String format = ConfigChat.chatFormat;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.