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
[Suggestion] Provide LuckPerms Context for active/inactive maintenance mode #54
Comments
this functionality could be accomplished with LuckPermsExtraContexts and PlaceholderAPI placeholders (which are currently only available when using BungeeCord) |
Bump, I would love to see this feature |
another bump. I use contexts for tons of stuff and this would be handy! |
Soo, what kind of contexts would be helpful? I can't really think of any usecases other than ignoring the given player and just adding whether maintenance is globally enabled and whether maintenance is enabled on the proxied server, like: @Override
public void calculate(@NotNull final T target, @NotNull final ContextConsumer consumer) {
consumer.accept("is-maintenance", Boolean.toString(maintenance.isMaintenance()));
final String server = serverOf(target);
consumer.accept("is-maintenance-on-" + server, Boolean.toString(maintenance.getSettingsProxy().isMaintenance(server)));
} or just "is-on-maintenance-server" for the proxied one (instead of "on-")? |
It would be nice if this Plugin would provide a Context for LuckPerms to for example give extra permissions when maintenance mode is active
The text was updated successfully, but these errors were encountered: