From 199bbbabeb0e3355ef07d2ba9dc178a60e88f33a Mon Sep 17 00:00:00 2001 From: ORelio Date: Fri, 11 Mar 2016 10:52:19 +0100 Subject: [PATCH] Add /move get for getting coordinates Suggested in #129 --- MinecraftClient/Commands/Move.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))