mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 03:55:18 -04:00
allow using /m coord as shortcut for /m coord coord coord
This commit is contained in:
parent
5f4d74050f
commit
01d59f6923
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user