From 01d59f6923caa385e11695243020c52df114f1c8 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 29 Dec 2017 08:44:43 +1100 Subject: [PATCH] allow using /m coord as shortcut for /m coord coord coord --- MCGalaxy/Commands/building/CmdMark.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MCGalaxy/Commands/building/CmdMark.cs b/MCGalaxy/Commands/building/CmdMark.cs index 69f9f6864..13cefda17 100644 --- a/MCGalaxy/Commands/building/CmdMark.cs +++ b/MCGalaxy/Commands/building/CmdMark.cs @@ -65,7 +65,11 @@ namespace MCGalaxy.Commands.Building { } bool ParseCoords(string message, Player p, ref Vec3S32 P) { - string[] args = message.ToLower().SplitSpaces(); + string[] args = message.SplitSpaces(); + // Expand /mark ~4 into /mark ~4 ~4 ~4 + if (args.Length == 1) { + args = new string[] { message, message, message }; + } if (args.Length != 3) { Help(p); return false; } // Hacky workaround for backwards compatibility