Package com.platymuus.bukkit.permissions

Examples of com.platymuus.bukkit.permissions.PermissionInfo


    }

    @Override
    public String[] getPlayerGroups(String world, String player) {
        List<String> groupList = new ArrayList<String>();
        PermissionInfo info = perms.getPlayerInfo(player);
        if (world != null && info != null) {
            for (Group group : perms.getPlayerInfo(player).getGroups()) {
                if (group.getInfo().getWorlds().contains(world)) {
                    groupList.add(group.getName());
                }
            }
            return groupList.toArray(new String[0]);
        }
        if (info != null) {
            for (Group group : info.getGroups()) {
                groupList.add(group.getName());
            }
        }
        return groupList.toArray(new String[0]);
    }
View Full Code Here

TOP

Related Classes of com.platymuus.bukkit.permissions.PermissionInfo

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.