I tried using AsyncTabCompleteEvent but the completions method just receive a List<String>, the best that i can do is add a tooltip to the completion. I need to translate it to spanish and portuguese
The completions are just strings... I'm not sure if I've seen a plugin that tries to handled commands in multiple languages. You would have to add those translations based on the player's locale and then automatically handle that in the logic for handling your commands.
Ok, knowing that the AsyncTabCompleteEvent contains all the client information needed to translate each completion suggestion seems weird be unable to translate it via TranslatableComponent, but ok, i'm going to handle it by myself
Yeah i know, it does not need to handle all components, just the TranslatableComponent. I will get the player locate language and return him the correct completion language
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.