PEX User being in multiple groups.
Hadesone11 opened this issue · 10 comments
Hey guys, thanks for checking this out. I've been researching this all day and I can't seem to find a solid answer.
What I need to do is have two ranks, say, Admin and Donor. In the yml I have it set a prefix [Admin] under admin and suffix [Donor] under the donor group. I want to allow the Staff member to have the donor rank.
Currently when I use the pex command to 'set' my group to donor it sets my prefix to the default ranks prefix then the donor suffix works. Then if i set my group to a staff rank it gets rid of the Donor suffix.
P.S I have tried with rank ladder and without
I just want a definitive answer on what I need to do and what i'm doing wrong.
Heres my yml
https://pastebin.com/ccfMXBCJ
The "set" command— pex user <user> group set <group>
—removes a user from all groups to which they belong, and places them into one group.
If you want a user to be in 2 groups at the same time, you would want to use the "add" command— pex user <user> group add <group>
—instead. You may also have to add weight:
values to each of your groups to ensure the proper prefix is displayed in chat. See this example to learn how weight:
values should be assigned.
It's also important to note that, by default, you can't have the prefix of one group and the suffix of another. There may be a chat management plugin which does that— PEX doesn't actually do any of the displaying of prefixes/suffixes; that's entirely handled by a chat management plugin —but I couldn't tell you the name of one (if there is one) since I've never needed such a feature on my server.
You may have to assign the suffix to the user directly.
If that doesn't solve your problem, I'll need some more information:
• Which version of Minecraft are you running?
• Which version of PermissionsEx are you running?
• What chat management plugins are you using? (Essentials, EssentialsX, TownyChat, Multiverse, something else?)
Other issues I noticed in your permissions.yml file:
• You need to increase all of your "rank:
" values by 1 because "0" for the "Owner" group isn't a valid value. The group with rank: 1
is the most powerful group on the server.
• The group name "Co-Owner", which may not be recognized by some plugins' features. I recommend you change the group name to "CoOwner" and you can leave the hyphenated name in the prefix. Be sure to correct the inheritance for any group which inherits from "Co-Owner"/"CoOwner" too.
On a similar note, groups should avoid using other special characters like the "+" (plus sign). e.g., "Donor+" may not be recognized as a group on the server, so the name should be changed to "DonorPlus" to prevent badly programmed plugins from not being able to find that group.
• If you're running Minecraft 1.9 or more recent, your group named "default" also needs an inheritance:
section. (Every group needs that section from Minecraft 1.9 onward.) See line 19 of this example to give that group an "empty" inheritance.
• Your group named "default" won't have access to the "starter" kit because they don't have access to the /kit
slash command. Type pex group default add essentials.kit
into the console to give the group their missing permission node.
On a similar note, the group will not have access to any warps because they are missing permission nodes to specific warps they're allowed access to and/or a wildcard to give them access to all warps. See the Essentials Permission Nodes List to find the proper format for the nodes you'll need to give them.
I did some MAJOR edits on my previous comment. (Edits don't get emailed to you.)
Show me; type out the exact result you're attempting to achieve, as your reply here.
[World] [GroupA Prefix] [GroupB Prefix] Username [GroupC Suffix]
?
[Admin] Hades [Donor]
?
or whatever else you have in mind.
Show me your new permissions.yml file also.
[Prefix(Admin)] Username [Suffix(Donor)]
https://pastebin.com/cWBRGB43
I don't think it's possible to assign specific group prefixes and suffixes with EssentialsChat or EssentialsXChat (which aren't listed in-game) and I've never used FactionChat, so I can't help you with that one.
Take a look at the Essentials Chat Formatting page and you may be able to figure out how to setup the plugins\Essentials\config.yml file to get what you're after.
This isn't a PermissionsEx issue at all. PEX only gives you a place to store prefix and suffix information.
The actual displaying of that information in-game is handled by— in your case —the EssentialsChat or EssentialsXChat and FactionChat plugins. So you'll have to dig into their documentation to find out how they handle chat formatting.