Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering tag provider #1057

Open
kezz opened this issue Mar 27, 2024 · 0 comments
Open

Filtering tag provider #1057

kezz opened this issue Mar 27, 2024 · 0 comments

Comments

@kezz
Copy link
Member

kezz commented Mar 27, 2024

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
Projects
None yet
Development

No branches or pull requests

1 participant