Package net.krinsoft.privileges.groups

Examples of net.krinsoft.privileges.groups.Group


        return false;
    }

    @Override
    public boolean groupHas(String world, String group, String permission) {
        Group g = privs.getGroupManager().getGroup(group);
        return g != null && g.hasPermission(permission, world);
    }
View Full Code Here


        return g != null && g.hasPermission(permission, world);
    }

    @Override
    public boolean groupAdd(String world, String group, String permission) {
        Group g = privs.getGroupManager().getGroup(group);
        return g != null && g.addPermission(world, permission);
    }
View Full Code Here

        return g != null && g.addPermission(world, permission);
    }

    @Override
    public boolean groupRemove(String world, String group, String permission) {
        Group g = privs.getGroupManager().getGroup(group);
        return g != null && g.removePermission(world, permission);
    }
View Full Code Here

    }

    @Override
    public boolean playerInGroup(String world, String player, String group) {
        OfflinePlayer p = Bukkit.getOfflinePlayer(player);
        Group g = privs.getGroupManager().getGroup(p);
        return g != null && g.isMemberOf(group);
    }
View Full Code Here

        return g != null && g.isMemberOf(group);
    }

    @Override
    public boolean playerAddGroup(String world, String player, String group) {
        Group g = privs.getGroupManager().setGroup(player, group);
        return g != null;
    }
View Full Code Here

        return g != null;
    }

    @Override
    public boolean playerRemoveGroup(String world, String player, String group) {
        Group g = privs.getGroupManager().getDefaultGroup();
        return g != null && playerAddGroup(world, player, g.getName());
    }
View Full Code Here

    public String[] getPlayerGroups(String world, String player) {
        OfflinePlayer p = Bukkit.getOfflinePlayer(player);
        if (p == null) {
            throw new UnsupportedOperationException("Privileges does not support offline players.");
        }
        Group g = privs.getGroupManager().getGroup(p);
        return g != null ? g.getGroupTree().toArray(new String[g.getGroupTree().size()]) : null;
    }
View Full Code Here

    }

    @Override
    public String getPrimaryGroup(String world, String player) {
        OfflinePlayer p = Bukkit.getOfflinePlayer(player);
        Group g = privs.getGroupManager().getGroup(p);
        return g != null ? g.getName() : null;
    }
View Full Code Here

TOP

Related Classes of net.krinsoft.privileges.groups.Group

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.