Command list with descriptions in handbook

This commit is contained in:
Piotr Blecharski
2022-05-07 23:20:12 +02:00
committed by Melledy
parent e85eb2f48a
commit 34228dc9cd
3 changed files with 24 additions and 5 deletions

View File

@@ -79,6 +79,12 @@ public final class CommandMap {
return this;
}
public List<Command> getAnnotationsAsList() { return new LinkedList<>(this.annotations.values()); }
public HashMap<String, Command> getAnnotations() {
return new LinkedHashMap<>(this.annotations);
}
/**
* Returns a list of all registered commands.
*