Add command description multilingual

This commit is contained in:
方块君
2022-05-08 10:33:53 +08:00
committed by Melledy
parent 257a92f3ef
commit a46d58e5f6
40 changed files with 306 additions and 115 deletions

View File

@@ -85,6 +85,14 @@ public final class CommandMap {
return new LinkedHashMap<>(this.annotations);
}
public HashMap<CommandHandler, Command> getHandlersAndAnnotations() {
HashMap<CommandHandler, Command> hashMap = new HashMap<>();
this.commands.forEach((key, handler) -> {
hashMap.put(handler, this.annotations.get(key));
});
return hashMap;
}
/**
* Returns a list of all registered commands.
*