@Override
    public PermissionAttachment addAttachment(Plugin plugin, @Nullable String permission, @Nullable Boolean value) {
        Objects.requireNonNull(plugin, "plugin");

        LuckPermsPermissionAttachment attachment = new LuckPermsPermissionAttachment(this, plugin);
        attachment.hook();

        if (permission != null) { // ffs nukkit, why
            boolean val = value == null || value;
            attachment.setPermission(permission, val);
        }

        return attachment;
    }
Adds attachments to this permissible.

@param attachments the attachments to add
nukkit/src/main/java/me/lucko/luckperms/nukkit/inject/permissible/LuckPermsPermissible.java