Core: Add /realm as alias for /overseer.

This commit is contained in:
UnknownShadow200 2016-09-15 17:57:11 +10:00
parent 163a4c7208
commit 1f2b31bc6d
2 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
/*
Copyright 2011 MCForge
Dual-licensed under the Educational Community License, Version 2.0 and
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
not use this file except in compliance with the Licenses. You may
obtain a copy of the Licenses at
@ -28,6 +28,9 @@ namespace MCGalaxy.Commands {
public override string type { get { return CommandTypes.Moderation; } }
public override bool museumUsable { get { return true; } }
public override LevelPermission defaultRank { get { return LevelPermission.Builder; } }
public override CommandAlias[] Aliases {
get { return new[] { new CommandAlias("realm"), new CommandAlias("myrealm") }; }
}
public CmdOverseer() { }
public override void Use(Player p, string message) {

View File

@ -16,10 +16,8 @@
permissions and limitations under the Licenses.
*/
using System.IO;
namespace MCGalaxy.Commands
{
public sealed class CmdHide : Command
{
namespace MCGalaxy.Commands {
public sealed class CmdHide : Command {
public override string name { get { return "hide"; } }
public override string shortcut { get { return ""; } }
public override string type { get { return CommandTypes.Moderation; } }
@ -30,7 +28,7 @@ namespace MCGalaxy.Commands
}
public override CommandAlias[] Aliases {
get { return new[] { new CommandAlias("xhide", "silent") }; }
}
}
public CmdHide() { }
public override void Use(Player p, string message) {