Triton icon indicating copy to clipboard operation
Triton copied to clipboard

Avoid passing text through the new parser for legacy API methods

Open diogotcorreia opened this issue 2 years ago • 0 comments

The old API methods, such as LanguageManager#getText are using the new Adventure parser, which removes the original color codes and might change their location.

People using the API might not account for this, since this was not the behaviour on v3. To avoid this, just use simple string text-replacement for these methods, providing similar behaviour to v3.

diogotcorreia avatar Jan 01 '23 18:01 diogotcorreia