Skip to content

Filtering tag provider

Open
Enhancement

Description

Given the introduction of contextual MiniMessage parses, it would be nice to provide (perhaps in the builder?) a way to "filter" the tags. This would be left entirely up to the end user to implement, but the idea would be that we would allow a more "central" MiniMessage instance, with filtering done dynamically.

For example, it could look something like:

builder.dynamicTagFiltering(tagName, context -> context.targetAsType(Player.class).hasPermission("myplugin.tags." + tagName));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions