Fix commands not being loaded by reflection.
This commit is contained in:
1 parent
4dba5f3c41
commit
2ef960b189
1 file changed
+1
-1
@@ -58,7 +58,7 @@ public class EssentiaPlugin extends JavaPlugin implements EssentiaAPI {
|
||||
}
|
||||
|
||||
void loadCommands() {
|
||||
Reflections reflections = new Reflections("com.alttd.essentia.commands.list");
|
||||
Reflections reflections = new Reflections("com.alttd.essentia.commands");
|
||||
Set<Class<?>> subTypes = reflections.get(Scanners.SubTypes.of(EssentiaCommand.class).asClass());
|
||||
|
||||
LifecycleEventManager<Plugin> manager = this.getLifecycleManager();
|
||||
|
||||
Reference in new issue
Block a user