Triton
Triton copied to clipboard
Avoid passing text through the new parser for legacy API methods
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.