Skip to content

Commit

Permalink
强迫症受够了,”注释掉的代码“
Browse files Browse the repository at this point in the history
  • Loading branch information
Gingmzmzx committed Aug 26, 2024
1 parent cb2d3f4 commit a1d1936
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,19 @@ public static CommandHandler getInstance() {
* 注意要使用小写,与发送者的指令进行匹配
*/
private void initHandler() {
// Reflections reflections = new Reflections("center.xzy.qb.messagesync.commands.impl");
// Set<Class<? extends ICommand>> subTypesOf = reflections.getSubTypesOf(ICommand.class);
//// Main.instance.getLogger().warning(subTypesOf.toArray().toString());
// subTypesOf.forEach(aClass -> {
// try {
// ICommand command = aClass.newInstance();
// registerCommand(command);
// } catch (InstantiationException | IllegalAccessException e) {
// throw new RuntimeException(e);
// }
// });
/*
Reflections reflections = new Reflections("center.xzy.qb.messagesync.commands.impl");
Set<Class<? extends ICommand>> subTypesOf = reflections.getSubTypesOf(ICommand.class);
// Main.instance.getLogger().warning(subTypesOf.toArray().toString());
subTypesOf.forEach(aClass -> {
try {
ICommand command = aClass.newInstance();
registerCommand(command);
} catch (InstantiationException | IllegalAccessException e) {
throw new RuntimeException(e);
}
});
*/

registerCommand(new enable());
registerCommand(new disable());
Expand Down

0 comments on commit a1d1936

Please sign in to comment.