itsthechris07 / EasyPrefix

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

[BUG] #200

Closed Elrol closed 1 year ago

Elrol commented 1 year ago

Details

Spigot Version: paper-1.19.2-285 image_2022-11-24_122349291

please run /ep debug and attach a screenshot

Describe the bug

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.

Expected behavior

The behavior that I would have expected is that the subgroup's prefixes would be visible when using EssentialX's chat plugin instead of it showing the placeholder inside of the group prefix

Screenshots

If applicable, add screenshots to help explain your problem. image_2022-11-24_122544320 image_2022-11-24_122621071 image_2022-11-24_122635934

Elrol commented 1 year ago

Also, not sure if you wanted me to make another bug report, but using /ep setprefix "prefix" doesn't work, it just opens a gui to set the prefix.

Had been trying to have it set without the player's input and it wasn't working