mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
init
This commit is contained in:
parent
a1259edcae
commit
f8aefaf129
39 changed files with 353 additions and 66 deletions
|
|
@ -2082,6 +2082,13 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
/// <returns>Completed text</returns>
|
||||
IEnumerable<string> IAutoComplete.AutoComplete(string BehindCursor)
|
||||
{
|
||||
var sug = McClient.dispatcher.GetCompletionSuggestions(McClient.dispatcher.Parse(BehindCursor[1..], McClient.cmd_source));
|
||||
sug.Wait();
|
||||
foreach (var hint in sug.Result.List)
|
||||
{
|
||||
log.Info(hint);
|
||||
}
|
||||
//log.Info(McClient.dispatcher.GetSmartUsage(McClient.dispatcher.Parse(BehindCursor, McClient.cmd_source), McClient.cmd_source));
|
||||
|
||||
if (String.IsNullOrEmpty(BehindCursor))
|
||||
return Array.Empty<string>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue