Examples of PermissionDataAccess


Examples of net.canarymod.backbone.PermissionDataAccess

        return list;
    }

    @Override
    public void printPermissionsToCaller(MessageReceiver caller) {
        PermissionDataAccess data = new PermissionDataAccess(world);
        ArrayList<DataAccess> list = new ArrayList<DataAccess>();
        try {
            Database.get().loadAll(data, list, new String[]{ "owner", "type" }, new Object[]{ this.owner, isPlayerProvider ? "player" : "group" });
        }
        catch (DatabaseReadException e) {
            caller.notice(Translator.translate("no permissions"));
        }
        if (list.size() > 0) {
            for (DataAccess da : list) {
                PermissionDataAccess perm = (PermissionDataAccess) da;
                if (perm.value) {
                    caller.message(Colors.LIGHT_GREEN + perm.path + ": true");
                }
                else {
                    caller.message(Colors.LIGHT_RED + perm.path + ": false");
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.