mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-10-03 02:21:53 -04:00
ZoneMark should be allowed in museums
This commit is contained in:
parent
cee0ef96b9
commit
0a380c1731
@ -21,7 +21,6 @@ using MCGalaxy.Bots;
|
|||||||
namespace MCGalaxy.Commands.CPE {
|
namespace MCGalaxy.Commands.CPE {
|
||||||
public class CmdModel : EntityPropertyCmd {
|
public class CmdModel : EntityPropertyCmd {
|
||||||
public override string name { get { return "Model"; } }
|
public override string name { get { return "Model"; } }
|
||||||
public override string shortcut { get { return "SetModel"; } }
|
|
||||||
public override string type { get { return CommandTypes.Other; } }
|
public override string type { get { return CommandTypes.Other; } }
|
||||||
public override LevelPermission defaultRank { get { return LevelPermission.AdvBuilder; } }
|
public override LevelPermission defaultRank { get { return LevelPermission.AdvBuilder; } }
|
||||||
public override CommandPerm[] ExtraPerms {
|
public override CommandPerm[] ExtraPerms {
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using MCGalaxy.Maths;
|
|
||||||
using MCGalaxy.Commands;
|
using MCGalaxy.Commands;
|
||||||
|
using MCGalaxy.Maths;
|
||||||
using MCGalaxy.Scripting;
|
using MCGalaxy.Scripting;
|
||||||
|
|
||||||
namespace MCGalaxy {
|
namespace MCGalaxy {
|
||||||
@ -105,8 +105,8 @@ namespace MCGalaxy {
|
|||||||
grp.Commands.Remove(cmd);
|
grp.Commands.Remove(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
// typically Command.Unregister(Command.Find("xyz"))
|
// typical usage: Command.Unregister(Command.Find("xyz"))
|
||||||
// So don't error if Command.Find returned null
|
// So don't throw exception if Command.Find returned null
|
||||||
if (cmd != null) Alias.UnregisterDefaults(cmd);
|
if (cmd != null) Alias.UnregisterDefaults(cmd);
|
||||||
return removed;
|
return removed;
|
||||||
}
|
}
|
||||||
|
@ -242,7 +242,6 @@ namespace MCGalaxy.Commands.Moderation {
|
|||||||
public override string name { get { return "ZoneMark"; } }
|
public override string name { get { return "ZoneMark"; } }
|
||||||
public override string shortcut { get { return "ZMark"; } }
|
public override string shortcut { get { return "ZMark"; } }
|
||||||
public override string type { get { return CommandTypes.Building; } }
|
public override string type { get { return CommandTypes.Building; } }
|
||||||
public override bool museumUsable { get { return false; } }
|
|
||||||
public override bool SuperUseable { get { return false; } }
|
public override bool SuperUseable { get { return false; } }
|
||||||
public override CommandAlias[] Aliases {
|
public override CommandAlias[] Aliases {
|
||||||
get { return new[] { new CommandAlias("zm") }; }
|
get { return new[] { new CommandAlias("zm") }; }
|
||||||
|
@ -241,13 +241,8 @@ namespace MCGalaxy.Maths {
|
|||||||
return a.X != b.X || a.Y != b.Y || a.Z != b.Z;
|
return a.X != b.X || a.Y != b.Y || a.Z != b.Z;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public override string ToString() {
|
public override string ToString() {
|
||||||
return X + "," + Y + "," + Z;
|
return X + "," + Y + "," + Z;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string ToString(string separator) {
|
|
||||||
return string.Format("{1}{0}{2}{0}{3}", separator, X, Y, Z);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user