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:
ORelio 2014-08-18 15:10:15 +02:00
parent 31e53c2dbd
commit b0b65b7ce0
3 changed files with 66 additions and 47 deletions

View file

@ -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>