Uh oh!
There was an error while loading. Please reload this page.
Add discord roles blacklist and aliases for chat format - #5157
Conversation
JRoy
left a comment
There was a problem hiding this comment.
Both these features are fine, just a few things;
discord-roles-selectionshould be made into a blacklist rather than a whitelist, be renamed todiscord-role-blacklist, and the config should have the examples commented out (like howworld-aliasesare in the main essentials config).discord-roles-aliasesshould support both discord role names and ids and have their examples commented out as well.
x86-39
commented
Nov 19, 2022
I feel like it being a whitelist is still desired in many cases, perhaps an option to turn the whitelist into a blacklist? This is how DiscordSRV does it too. Will add it to support IDs and comment it out in the config tomorrow |
JRoy
commented
Nov 19, 2022
I think a majority of users will only have a couple of roles they don't want used as top role, such as a default role, rather than a bunch of unwanted top roles |
x86-39
commented
Nov 19, 2022
Maybe a blacklist by default (renaming it to blacklist too) with an option for it to be a whitelist? |
JRoy
commented
Nov 19, 2022
I think that would become confusing, do you have an example of a common use case for a whitelist would be better over a blacklist? |
x86-39
commented
Nov 19, 2022
We have staff ranks inside Minecraft which are roles present in Discord, but the Discord has more roles than that. When messages go to the Minecraft server, we only care about those staff roles going to Minecraft. Having a whitelist of just the few staff ranks is a lot easier then. |
x86-39
commented
Dec 11, 2022
@JRoy Any input on this? If you agree with the whitelist suggestion I can implement it and finalise this PR |
JRoy
commented
Dec 11, 2022
Sorry, though I had replied, still convinced that a blacklist would be more useful by default. You can add a boolean config option |
x86-39
commented
Dec 11, 2022
Yeah a blacklist by default is fine, I'll add a boolean thank you. Will modify the PR when I have the chance |
x86-39
commented
Mar 21, 2023
…5157) Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
…5157) Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
Information
This PR partially closes #5155
Details
Proposed feature:
Add options to only select certain Discord roles and to add aliases for roles.
This is parallel to the
DiscordChatChannelRoleAliasesandDiscordChatChannelRolesSelectionoptions in DiscordSRV.This can be used to ignore certain roles, by only selecting roles relating to Minecraft to be processed by the plugin.
The aliases allow for mapping names in Discord to in Minecraft. For example "Admins" can be mapped to "Admin". This can also be used to hardcode which colour a role should be in Minecraft by setting the alias to include a colour code for example: "§9Admin"
Environments tested:
OS: Fedora 36
Java version:
17.0.5Don't see how this could differ on other server versions.
Demonstration:
The


Founderrole gets ignored and theAdminsrole gets translated to§9Admin