mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-18 01:46:44 +01:00
Add command description multilingual
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user