Closed anar4732 closed 4 years ago
AFAIK PAPI already has a JS addon which allows to create custom placeholders.
AFAIK PAPI already has a JS addon which allows to create custom placeholders.
PAPI not supports color codes like {#ffff00}
No unfortunately this is out of scope of the ChatControl plugin and PAPI already has this functionality.
I am pretty sure you can use the Rhino JavaScript engine to call Java.of("net.md_5.bungee.api.ChatColor").of("#CCCCCC") or something like that to get the color working on 1.16
Java.of("net.md_5.bungee.api.ChatColor").of("#CCCCCC") this is not working even.
Sorry, it is Java.type not Java.of
Please see https://winterbe.com/posts/2014/04/05/java8-nashorn-tutorial/ for a quick tutorial on running JavaScript.
Unfortunately I will not be able to assist you with creating JS variables. I understand PAPI lacks this feature, we may add it later but at presents our roadmap is already full.
No unfortunately this is out of scope of the ChatControl plugin and PAPI already has this functionality.
I am pretty sure you can use the Rhino JavaScript engine to call Java.of("net.md_5.bungee.api.ChatColor").of("#CCCCCC") or something like that to get the color working on 1.16
hi thank you for help. is it for just rhino or works with nashorn engine too?
not sure, you'd have to test :)
for exemple i can use AbstractMenus' variables anywhere that supports PAPI.
thanks.