Update ReadMe.md
Fix /quake help/? command completion
This commit is contained in:
@@ -101,7 +101,7 @@ public class MyCommandExecutor implements CommandExecutor {
|
||||
}
|
||||
|
||||
public List<String> getCompletionList(Player player, String[] args) {
|
||||
List<String> list = null;
|
||||
List<String> list;
|
||||
|
||||
if( args.length <= 1) {
|
||||
list = _commands.keySet().stream().collect(Collectors.toList());
|
||||
@@ -112,6 +112,9 @@ public class MyCommandExecutor implements CommandExecutor {
|
||||
if(_commands.containsKey(args[0])) {
|
||||
list = _commands.get(args[0]).getCompletionList(player, args);
|
||||
}
|
||||
else {
|
||||
list = new ArrayList();
|
||||
}
|
||||
}
|
||||
|
||||
return list;
|
||||
|
||||
Reference in New Issue
Block a user