public final void setDefaultPerms(HashMap<PermissionFlag, Boolean> flags) {
        if (flags == null) {
            ChunkyManager.getPermissions(this, this).clearFlags();
            DatabaseManager.getDatabase().removePermissions(this, this);
            return;
        }

        for (Map.Entry<PermissionFlag, Boolean> flag : flags.entrySet()) {
            setDefaultPerm(flag.getKey(), flag.getValue());
        }
    }