Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
e9a95b89
Commit
e9a95b89
authored
Jul 21, 2022
by
AnimeGitB
Committed by
Luke H-W
Jul 22, 2022
Browse files
Use sorted containers for commands & aliases
parent
104e04f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/CommandMap.java
View file @
e9a95b89
...
...
@@ -8,9 +8,9 @@ import java.util.*;
@SuppressWarnings
({
"UnusedReturnValue"
,
"unused"
})
public
final
class
CommandMap
{
private
final
Map
<
String
,
CommandHandler
>
commands
=
new
LinkedHash
Map
<>();
private
final
Map
<
String
,
CommandHandler
>
aliases
=
new
LinkedHash
Map
<>();
private
final
Map
<
String
,
Command
>
annotations
=
new
LinkedHash
Map
<>();
private
final
Map
<
String
,
CommandHandler
>
commands
=
new
Tree
Map
<>();
private
final
Map
<
String
,
CommandHandler
>
aliases
=
new
Tree
Map
<>();
private
final
Map
<
String
,
Command
>
annotations
=
new
Tree
Map
<>();
private
final
Map
<
String
,
Integer
>
targetPlayerIds
=
new
HashMap
<>();
private
static
final
String
consoleId
=
"console"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment