public static LocationTag For(Server tserver, TagData dat, string input) { string[] spl = input.Split(','); Location coord; if (spl.Length < 3) { dat.Error("Invalid LocationTag input!"); } coord.X = NumberTag.For(dat, spl[0]).Internal; coord.Y = NumberTag.For(dat, spl[1]).Internal; coord.Z = NumberTag.For(dat, spl[2]).Internal; World w = null; if (spl.Length >= 4) { w = tserver.GetWorld(spl[3]); if (w == null) { dat.Error("Invalid world for LocationTag input!"); } } return new LocationTag(coord, w); }