diff --git a/MinecraftClient/Commands/Move.cs b/MinecraftClient/Commands/Move.cs index 25ab8e16..68a4323c 100644 --- a/MinecraftClient/Commands/Move.cs +++ b/MinecraftClient/Commands/Move.cs @@ -9,7 +9,7 @@ namespace MinecraftClient.Commands public class Move : Command { public override string CMDName { get { return "move"; } } - public override string CMDDesc { get { return "move : walk or start walking."; } } + public override string CMDDesc { get { return "move : walk or start walking."; } } public override string Run(McTcpClient handler, string command) { @@ -28,6 +28,7 @@ namespace MinecraftClient.Commands case "west": direction = Direction.West; break; case "north": direction = Direction.North; break; case "south": direction = Direction.South; break; + case "get": return handler.GetCurrentLocation().ToString(); default: return "Unknown direction '" + dirStr + "'."; } if (Movement.CanMove(handler.GetWorld(), handler.GetCurrentLocation(), direction))