mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Add offline command prompt
Fix #42, and allow more interactive commands when not connected to a server. /quit, /reco, /connect are the only allowed commands in this limited command prompt. Updated Assembly Info, version number is now 1.8.0.
This commit is contained in:
parent
31e53c2dbd
commit
b0b65b7ce0
3 changed files with 66 additions and 47 deletions
|
|
@ -264,7 +264,7 @@ namespace MinecraftClient
|
|||
}
|
||||
else
|
||||
{
|
||||
response_msg = "Unknown command '" + command_name + "'. Use 'help' for help.";
|
||||
response_msg = "Unknown command '" + command_name + "'. Use '" + (Settings.internalCmdChar == ' ' ? "" : "" + Settings.internalCmdChar) + "help' for help.";
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
@ -332,7 +332,7 @@ namespace MinecraftClient
|
|||
foreach (ChatBot bot in bots)
|
||||
will_restart |= bot.OnDisconnect(reason, message);
|
||||
|
||||
if (!will_restart) { Program.ReadLineReconnect(); }
|
||||
if (!will_restart) { Program.OfflineCommandPrompt(); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue