Added respawn ability in /reco

- Added a notification message when you die stating you can respawn with
/reco
- Added a respawn packet sent before disconnecting when using /reco

Note: Why a respawn in /reco and not a /respawn command?  Once respawned
using the console on 1.6.2 server, the player stays invisible for other
players unless he (or the other player) disconnects & reconnect so it's
necessary to reconnect after respawning.
This commit is contained in:
ORelio 2013-08-06 11:28:27 +02:00
parent d6f4b97ffa
commit d1770ebb02
2 changed files with 14 additions and 1 deletions

View file

@ -194,6 +194,7 @@ namespace MinecraftClient
else if (text == "/reco" || text == "/reconnect")
{
ConsoleIO.WriteLine("You have left the server.");
handler.SendRespawnPacket();
Program.Restart();
}
}