mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 10:51:47 +00:00
Use sorted containers for commands & aliases
This commit is contained in:
parent
104e04f70a
commit
e9a95b89cf
@ -8,9 +8,9 @@ import java.util.*;
|
||||
|
||||
@SuppressWarnings({"UnusedReturnValue", "unused"})
|
||||
public final class CommandMap {
|
||||
private final Map<String, CommandHandler> commands = new LinkedHashMap<>();
|
||||
private final Map<String, CommandHandler> aliases = new LinkedHashMap<>();
|
||||
private final Map<String, Command> annotations = new LinkedHashMap<>();
|
||||
private final Map<String, CommandHandler> commands = new TreeMap<>();
|
||||
private final Map<String, CommandHandler> aliases = new TreeMap<>();
|
||||
private final Map<String, Command> annotations = new TreeMap<>();
|
||||
private final Map<String, Integer> targetPlayerIds = new HashMap<>();
|
||||
private static final String consoleId = "console";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user