Minepacks

Minepacks

2M Downloads

Bold not resetting after another chatcolor or chatformat on lang file

Achent007 opened this issue · 5 comments

commented

Information

Environment information
Plugin + server version info:

Minepacks: 2.4.11-release
Server: git-Paper-1620 (MC: 1.12.2)
Java: 11.0.17

Online mode: yes
BungeeCord: yes

Details

Description
When we put some bold on the lang file, the bold is not remove when we use another chatcolor after it.

Steps to reproduce
Edit the lang file and place a chatcolor with bold and put another chatcolor after with some text and those text will be with the bold

Expected behavior
The bold chatformat should be removed after any chatcolor or chatformat use.

ex:
image

commented

What did you put into the language file?
Did you use legacy formatting or JSON?
When using the old (non JSON) way of formatting, format codes should NOT be be removed by changing color or adding another format code, you have to explicitly remove them by using the reset code (&r or §r). IRC this should be the same behavior as Bukkits chat/message API.

commented

actually, before testing something with &r i have this :
NoPermission: "&8[&e&l!&8] &cYou don't have the permission."
and now :
NoPermission: "&8[&e&l!&r&8] &cYou don't have the permission."

commented

And your current version is not working for you?
Because this should translate to ["",{"text":"[","color":"dark_gray"},{"text":"!","color":"yellow","bold":true},{"text":"] ","color":"dark_gray"},{"text":"You don't have the permission.","color":"red"}] which would be correct. Which you should be able to verify by using /tellraw <username> ["",{"text":"[","color":"dark_gray"},{"text":"!","color":"yellow","bold":true},{"text":"] ","color":"dark_gray"},{"text":"You don't have the permission.","color":"red"}].

Are you using some plugin that allows other versions to join your 1.12 server? If so which and which version is your client?

commented

Ah, damn, I see, I mixed up with the difference between bedrock and java edition. I will fix it.

commented

I'm using a 1.12.2 client and yes we have viaversion for higher version.
My version of en.yml is working but if i want to cancel the bold the &r is recquiered before another chatcolor.
If i use chatcolor directly on the chat i don't need this &r per exemple so this is confusing.