Skip to content

Remove Plugin hard dependency from PermissionAttachment #6543

@dktapps

Description

@dktapps

Problem description

This dependency makes it inconvenient to create PermissionAttachments within the core.

This would be useful for temporary permission overrides internally, e.g. gameplay permission overrides for #5544 that disappear when the player's gamemode is changed.

Proposed solution

Make the Plugin parameter optional, or get rid of it entirely - depends whether it's actually useful for anything or not.

Alternative solutions that don't require API changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    BC breakBreaks API compatibilityCategory: APIRelated to the plugin APICategory: CoreRelated to internal functionalityType: EnhancementContributes features or other improvements to PocketMine-MP

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions