Lightman's Discord Integration

Lightman's Discord Integration

46.6k Downloads

Formatting issue when using SMP Essentials mod

ItsPandAce opened this issue · 5 comments

commented

When using the Lightmans Discord Integration mod with the SMP Essentials mod there are some formatting issues.

image

Among other things the SMP Essentials mod modifies the nametag of the player giving it a certain color and it can add a team name to it. The formatting of the player's nametag is then displayed in discord.

Would you be able to take a look at this and see if you could prevent the formatting from displaying in discord?

I'm using the following versions:

  • lightmansdiscord-1.18-0.2.0.2-server.jar
  • kotlinforforge-3.12.0-all.jar
  • smpessentials-1.18.2-1.0.jar
  • Forge -> 1.18.2 - 40.2.5

SMP Essentials mod: https://www.curseforge.com/minecraft/mc-mods/smpessentials/files/4726864

commented

I think I see the issue. I added a filter to remove the formatting codes from the players names, but it's only getting applied to the chat messages specifically, instead of all messages (which is why they appear in the join/leave messages, but not the actual chat message).

commented

Thank you for checking it out so quickly. So does this mean you'll be able to fix it?

commented

Aye. I'll try to get a fix out later today.

commented

Should be fixed in v0.2.0.3. Hopefully curseforge approves the files in a timely manner this time...

commented

I tested the version on modrinth and it works perfectly. Thank you so much for fixing so quickly <3