public void apply(PermissionBase base, CommandSender sender, World world) {
        List<String> permissions = base.getPermissions(world == null ? null : world.getName());
        PermissionAttachment att = sender.addAttachment(plugin);
        for (String perm : permissions) {
            att.setPermission(perm.startsWith("-") ? perm.substring(1) : perm, !perm.startsWith("-"));
        }
    }