ZoneMark should be allowed in museums

This commit is contained in:
UnknownShadow200 2020-06-11 20:05:45 +10:00
parent cee0ef96b9
commit 0a380c1731
4 changed files with 5 additions and 12 deletions

View File

@ -21,7 +21,6 @@ using MCGalaxy.Bots;
namespace MCGalaxy.Commands.CPE {
public class CmdModel : EntityPropertyCmd {
public override string name { get { return "Model"; } }
public override string shortcut { get { return "SetModel"; } }
public override string type { get { return CommandTypes.Other; } }
public override LevelPermission defaultRank { get { return LevelPermission.AdvBuilder; } }
public override CommandPerm[] ExtraPerms {

View File

@ -18,8 +18,8 @@
using System;
using System.Collections.Generic;
using System.Reflection;
using MCGalaxy.Maths;
using MCGalaxy.Commands;
using MCGalaxy.Maths;
using MCGalaxy.Scripting;
namespace MCGalaxy {
@ -105,8 +105,8 @@ namespace MCGalaxy {
grp.Commands.Remove(cmd);
}
// typically Command.Unregister(Command.Find("xyz"))
// So don't error if Command.Find returned null
// typical usage: Command.Unregister(Command.Find("xyz"))
// So don't throw exception if Command.Find returned null
if (cmd != null) Alias.UnregisterDefaults(cmd);
return removed;
}

View File

@ -242,7 +242,6 @@ namespace MCGalaxy.Commands.Moderation {
public override string name { get { return "ZoneMark"; } }
public override string shortcut { get { return "ZMark"; } }
public override string type { get { return CommandTypes.Building; } }
public override bool museumUsable { get { return false; } }
public override bool SuperUseable { get { return false; } }
public override CommandAlias[] Aliases {
get { return new[] { new CommandAlias("zm") }; }

View File

@ -241,13 +241,8 @@ namespace MCGalaxy.Maths {
return a.X != b.X || a.Y != b.Y || a.Z != b.Z;
}
public override string ToString() {
return X + "," + Y + "," + Z;
}
public string ToString(string separator) {
return string.Format("{1}{0}{2}{0}{3}", separator, X, Y, Z);
}
}
}