Bold not resetting after another chatcolor or chatformat on lang file
Achent007 opened this issue · 5 comments
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.
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.
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."
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?
Ah, damn, I see, I mixed up with the difference between bedrock and java edition. I will fix it.