Closed TobiasDeBruijn closed 3 years ago
@TheDutchMC try specifying classloader, by using ClassIndex.getAnnotated(Class<? extends Annotation> annotation, ClassLoader classLoader)
. By default context classloader of the current thread is used.
Yep that seems to do it, thanks!
Hi,
ClassIndex.getAnnotated(PluginCommandExecutor.class)
returns no results for me:I've double checked that the final jar contains
META-INF/annotations/*
, and that it containsnl.thedutchmc.multiplayerevents.annotations.PluginCommandExecutor
, which it does.Though when calling the in the title mentioned method no results are returned. If it matters any, this is a Minecraft Spigot plugin, which uses it's own classloader.