Closed Pikachu920 closed 2 years ago
I've made a few changes, among others disallowing the use of none-main plugin classes (such as ScriptLoader) with this expression. I did this because I often see people struggle with getting the instance of a certain class, and people might think this expression does it for them, plus the benefit of being able to call it on a non-main plugin class is small.
Adds
ExprPlugin
which allows direct access to javaplugin instances either by name or from a javatype. This makes it easier to get an instance of a plugin without having to import org.bukkit.Bukkit and grab it from the PluginManager. Test script:Output: