#PlaceholderAPI javascript-expansion

1 messages · Page 1 of 1 (latest)

mint granite
#

Is there a way to define server classes as variables in a javascript placeholder? I tried doing it like this and it works but I wanted to know if there is an easier way before continuing with this method

still fulcrum
#

I think once you load the class, you don't need to use reflection anymore and can directly use the methods on the object

#

yup, just tested

#

BukkitServer.getClass().getClassLoader().loadClass("net.kyori.adventure.text.Component").text("t")

fervent fog
still fulcrum
#

maybe try with class instead of getClass() like you had previously

#

I'm guessing getClass() works for me because I'm using the quickjs engine while you're on the nashorn one

slender zinc
#

Why do you want to kill your server performances?

#

Just use a plugin that supports mini message format