File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
src/main/java/center/xzy/qb/messagesync/executor Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -42,17 +42,19 @@ public static CommandHandler getInstance() {
4242 * 注意要使用小写,与发送者的指令进行匹配
4343 */
4444 private void initHandler () {
45- // Reflections reflections = new Reflections("center.xzy.qb.messagesync.commands.impl");
46- // Set<Class<? extends ICommand>> subTypesOf = reflections.getSubTypesOf(ICommand.class);
47- //// Main.instance.getLogger().warning(subTypesOf.toArray().toString());
48- // subTypesOf.forEach(aClass -> {
49- // try {
50- // ICommand command = aClass.newInstance();
51- // registerCommand(command);
52- // } catch (InstantiationException | IllegalAccessException e) {
53- // throw new RuntimeException(e);
54- // }
55- // });
45+ /*
46+ Reflections reflections = new Reflections("center.xzy.qb.messagesync.commands.impl");
47+ Set<Class<? extends ICommand>> subTypesOf = reflections.getSubTypesOf(ICommand.class);
48+ // Main.instance.getLogger().warning(subTypesOf.toArray().toString());
49+ subTypesOf.forEach(aClass -> {
50+ try {
51+ ICommand command = aClass.newInstance();
52+ registerCommand(command);
53+ } catch (InstantiationException | IllegalAccessException e) {
54+ throw new RuntimeException(e);
55+ }
56+ });
57+ */
5658
5759 registerCommand (new enable ());
5860 registerCommand (new disable ());
You can’t perform that action at this time.
0 commit comments