-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add permissions for individual colors #1441
Conversation
Oh, I should be clear: the perms right now are in the form of e.g. |
I think enum names would be better, especially considering that |
Done (e.g. I guess I should check: is there another place I need to declare these permissions for permissions plugins to properly detect them? |
Just realized that this doesn't work right with escaping, will correct... |
Hey Pokechu22. Thanks for a great contribution once again. I have a few concerns:
What I would do is when running permission checks on
EDIT: this would require the adding of a method in |
Yea, the existing permissions will continue to behave exactly the same.
Yes, currently that's how this works, and it's definitely suboptimal. I'll try to replace it. (Might also make sense to add a |
... on second thought, an |
Ah, right, that's the problem that I was thinking of: I made it so that |
Once I switch to checking if a perm's set in the loop, the explicit check is needed for an * perm.
Lastly, may we change this to comply with Minecraft's vanilla colour names and not Bukkit? I believe this is the correct step forward in making the feature more accessible in general.
|
If we're going to change one thing (in this case, the name for |
Are you referring to anything specifically?
…On Aug 12, 2017 5:44 PM, "md678685" ***@***.***> wrote:
If we're going to change one thing from Bukkit naming to vanilla naming
then we should be following that convention consistently throughout the
plugin. (Not that I see this as a necessary change, but still.)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1441 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABPV0RNE4ke19plC_Q1cK0jrMEaByDrvks5sXdaKgaJpZM4OuW5b>
.
|
@SupaHam My bad regarding consistency, didn't fully read the first comment of the PR. However, I still don't think we should change the name of the permission for magic/obfuscated text. It's been around for long enough and I don't see why we should just break people's permission setups. (Especially considering that by this point we don't generally tend to support the BukkitDev/Spigot releases in which server owners would normally expect to be informed of the breaking changes, but that's starting to go into another argument about the flaws of EssentialsX's versioning.) |
I forgot that |
Yea, it should be easy to leave |
`magic` is still accepted as the group name, so this is not a breaking change.
Done. One other thought - should I leave |
This sorta goes back to the |
I'm not sure what needs doing for this PR to be ready. From what I can tell, this is ready aside from this comment suggesting ca856a8 should be changed or reverted? Edit: I'll update this to master when ready to merge. |
Yeah, I'm not sure what's left either. If you want, I can revert that, but it's been a long enough time that I'm not really sure. |
Looking over this again, I think the issue was that having both |
Yeah, I think the point of that change was to allow using either |
This PR adds permissions for each individual chat color (and rewrites+adds tests for the chat formatting code).
New permissions suffixes for each code are added to
essentials.msg
,essentials.chat
,essentials.nick
, andessentials.signs
.