itsthechris07 / EasyPrefix

A chat management plugin for spigot
MIT License
3 stars 4 forks source link

Subgroup display issue #199

Closed Elrol closed 1 year ago

Elrol commented 1 year ago

Having an issue with displaying subgroups properly.

I am using EssentialsX Chat to handle chat formatting. I turned the setting for handling chat to false in the EP configs. I added: %ep_user_subgroup_prefix% to the prefix of the group.

When I tried it out, it showed me the correctly formatted group prefix, but it also included the placeholder. Like this: "Mod | %ep_user_subgroup_prefix% | Elrol_Arrowsend: test"

I then went and changed the handle chat setting back to true and tried that It starts with the correctly formatted group and subgroup, but is followed by the previous one. So it looked like this: "Mod | VIP Mod | %ep_user_subgroup_prefix% | Elrol_Arrowsend: test"

So it looks like the subgroups work only when the plugin is handling the chat and somewhere along the way the prefix isn't being parsed correctly.

I also tried to do it a different way, using the ChatInjector plugin to use placeholders in chat formats. I used "{ep_user_prefix}{NICKNAME}: {MESSAGE}" When I then tried it, I got the unformatted prefix for both the group and sub group but it didn't have the placeholder listed. It showed: "&c&lMod &7| &6VIP Elrol_Arrowsend: test"

I also wanted to try without the ChatInjector plugin to see if maybe that was causing the issue and set the chat format for essentials back to default and it again was outputting the same as the first one mentioned.

github-actions[bot] commented 1 year ago

@Elrol: hello! :wave:

This issue is being automatically closed because it does not follow the issue template.