diff --git a/MCGalaxy/Commands/Information/CmdPlayers.cs b/MCGalaxy/Commands/Information/CmdPlayers.cs index 8d22fc962..8b14a2dca 100644 --- a/MCGalaxy/Commands/Information/CmdPlayers.cs +++ b/MCGalaxy/Commands/Information/CmdPlayers.cs @@ -110,7 +110,8 @@ namespace MCGalaxy.Commands.Info { } builder.Append(name); - builder.Append(" (").Append(pl.level.name).Append("),"); + string lvlName = Colors.StripColors(pl.level.name); // for museums + builder.Append(" (").Append(lvlName).Append("),"); } } diff --git a/MCGalaxy/Commands/World/CmdNewLvl.cs b/MCGalaxy/Commands/World/CmdNewLvl.cs index c408c6bd9..191af01a5 100644 --- a/MCGalaxy/Commands/World/CmdNewLvl.cs +++ b/MCGalaxy/Commands/World/CmdNewLvl.cs @@ -16,7 +16,6 @@ permissions and limitations under the Licenses. */ using System; -using System.IO; using System.Threading; using MCGalaxy.Generator; @@ -43,7 +42,8 @@ namespace MCGalaxy.Commands.World { string name = args[0].ToLower(); if (!CheckMapAxis(p, args[1], "Width", ref x)) return false; if (!CheckMapAxis(p, args[2], "Height", ref y)) return false; - if (!CheckMapAxis(p, args[3], "Length", ref z)) return false; + if (!CheckMapAxis(p, args[3], "Length", ref z)) return false; + if (!CheckMapVolume(p, x, y, z)) return true; string seed = args.Length == 6 ? args[5] : ""; if (!Formatter.ValidName(p, name, "level")) return false; diff --git a/MCGalaxy/Levels/Level.Fields.cs b/MCGalaxy/Levels/Level.Fields.cs index e7a5ef231..2d938141b 100644 --- a/MCGalaxy/Levels/Level.Fields.cs +++ b/MCGalaxy/Levels/Level.Fields.cs @@ -33,19 +33,21 @@ namespace MCGalaxy { [ConfigString("MOTD", "General", null, "ignore", true, null, 128)] public string motd = "ignore"; - public string ColoredName { + public string Color { get { LevelPermission maxPerm = permissionvisit; if (maxPerm < permissionbuild) maxPerm = permissionbuild; - return Group.GetColor(maxPerm) + name; + return Group.GetColor(maxPerm); } } + public string ColoredName { get { return Color + name; } } + public byte rotx, roty; public ushort spawnx, spawny, spawnz; public Position SpawnPos { get { return new Position(16 + spawnx * 32, 32 + spawny * 32, 16 + spawnz * 32); } } public Orientation SpawnRot { get { return new Orientation(rotx, roty); } } - + public BlockDefinition[] CustomBlockDefs; public BlockProps[] CustomBlockProps; public ExtrasCollection Extras = new ExtrasCollection();