By default you should see if the plugin you want to use is a Service. If it is not available as a service you will have to manually import with the plugin’s Java API classes and methods within your script.
Example: Integrating CoreProtect
CoreProtect does not have a Service wrapper, but you can still access its API using Java reflection and Bukkit plugin management:
constCoreProtect=importClass("net.coreprotect.CoreProtect")constCoreProtectAPI=importClass("net.coreprotect.CoreProtectAPI")varBukkit=org.bukkit.Bukkit;varCoreProtectPlugin=Bukkit.getPluginManager().getPlugin("CoreProtect");varCoreProtectAPI=getMethod(CoreProtect,"getAPI").invoke(CoreProtectPlugin);CoreProtectAPI.testAPI();// Example call to CoreProtect API