Package net.ae97.totalpermissions.permission

Examples of net.ae97.totalpermissions.permission.PermissionGroup


    public void setGroupInfoString(String world, String group, String node, String value) {
        setGroupInfo(world, group, node, value);
    }

    private PermissionUser getUser(String name) {
        PermissionManager manager = totalPermissions.getManager();
        PermissionUser user = manager.getUser(name);
        return user;
    }
View Full Code Here


        PermissionUser user = manager.getUser(name);
        return user;
    }

    private PermissionGroup getGroup(String name) {
        PermissionManager manager = totalPermissions.getManager();
        PermissionGroup group = manager.getGroup(name);
        return group;
    }
View Full Code Here

        PermissionGroup group = manager.getGroup(name);
        return group;
    }

    private void setPlayerInfo(String world, String player, String node, Object value) {
        PermissionBase base = getUser(player);
        base.setOption(node, value, world);
    }
View Full Code Here

        PermissionBase base = getUser(player);
        base.setOption(node, value, world);
    }

    private void setGroupInfo(String world, String group, String node, Object value) {
        PermissionBase base = getGroup(group);
        base.setOption(node, value, world);
    }
View Full Code Here

        PermissionBase base = getGroup(group);
        base.setOption(node, value, world);
    }

    private Object getPlayerInfo(String world, String player, String node) {
        PermissionBase base = getUser(player);
        return base.getOption(node);
    }
View Full Code Here

        PermissionBase base = getUser(player);
        return base.getOption(node);
    }

    private Object getGroupInfo(String world, String group, String node) {
        PermissionBase base = getUser(group);
        return base.getOption(node);
    }
View Full Code Here

        return true;
    }

    @Override
    public boolean playerHas(String world, String player, String permission) {
        PermissionBase user = manager.getUser(player);
        return user.has(permission, world);
    }
View Full Code Here

    }

    @Override
    public boolean playerAdd(String world, String player, String permission) {
        try {
            PermissionBase user = manager.getUser(player);
            user.addPerm(permission, world);
            return true;
        } catch (IOException ex) {
            plugin.getLogger().log(Level.SEVERE,
                    String.format("[%s] An error occured while saving perms", totalperms.getDescription().getName()), ex);
            return false;
View Full Code Here

    }

    @Override
    public boolean playerRemove(String world, String player, String permission) {
        try {
            PermissionBase user = manager.getUser(player);
            user.remPerm(permission, world);
            return true;
        } catch (IOException ex) {
            plugin.getLogger().log(Level.SEVERE,
                    String.format("[%s] An error occured while saving perms", totalperms.getDescription().getName()), ex);
            return false;
View Full Code Here

        }
    }

    @Override
    public boolean groupHas(String world, String group, String permission) {
        PermissionBase permGroup = manager.getGroup(group);
        return permGroup.has(permission, world);
    }
View Full Code Here

TOP

Related Classes of net.ae97.totalpermissions.permission.PermissionGroup

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.