Fixed reflections

This commit is contained in:
Auxilor
2021-07-16 16:31:45 +02:00
committed by Auxilor
parent 51f690c9cb
commit a521a9c93a

View File

@@ -21,10 +21,15 @@ import java.util.List;
public class EcoConfigHandler extends PluginDependent<EcoPlugin> implements ConfigHandler {
private final List<LoadableConfig> configs = new ArrayList<>();
private final Reflections reflections = new Reflections(this.getPlugin().getClass().getPackageName(), new MethodAnnotationsScanner());
private final Reflections reflections;
public EcoConfigHandler(@NotNull final EcoPlugin plugin) {
super(plugin);
this.reflections = new Reflections(
this.getPlugin().getClass().getClassLoader(),
new MethodAnnotationsScanner()
);
}
@Override