PlaceholderAPI / Javascript-Expansion

Adds javascript placeholders
GNU General Public License v3.0
22 stars 24 forks source link

How to use Native Java API of Other Plugins inside JavaScript Pleaceholder? #30

Closed anar4732 closed 4 years ago

anar4732 commented 4 years ago

for exepmle. i need to use me.chemmic.main.API.ChatColorAPI.getChatColorCode(Player)

i know ChatColor have PAPI hook but i need to use it in a JS pleaceholder.

i tried to use var chatColorAPIClass = Java.type('me.chemmic.main.API.ChatColorAPI'); but thorws error "class not found" (but plugin installed)

Jiale23 commented 1 year ago

Hey guys,how did you resolve it?I want to do it with the same method. Thanks!