Examples of PermissionContext


Examples of net.minecraftforge.permissions.PermissionContext

    /**
     * Check, if the sender has permissions to use this command
     */
    public boolean checkCommandPermission(ICommandSender sender)
    {
        return PermissionsManager.checkPermission(new PermissionContext().setCommandSender(sender).setCommand(this), getPermissionNode());
    }
View Full Code Here

Examples of net.minecraftforge.permissions.PermissionContext

    if (args.length < 1)
    {
      throw new CommandException(FEPermissions.MSG_NOT_ENOUGH_ARGUMENTS);
    }

    if (!PermissionsManager.checkPermission(new PermissionContext().setCommandSender(sender).setCommand(this), TeleportModule.PERM_SPAWN_OTHERS))
    {
      throw new CommandException(FEPermissions.MSG_NO_COMMAND_PERM);
    }
    EntityPlayerMP player = UserIdent.getPlayerByMatchOrUsername(sender, args[0]);
    if (player == null)
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.