servuo/Scripts/Commands/Generic/Implementors/SelfCommandImplementor.cs
2013-10-28 07:09:42 +00:00

24 lines
No EOL
729 B
C#

using System;
namespace Server.Commands.Generic
{
public class SelfCommandImplementor : BaseCommandImplementor
{
public SelfCommandImplementor()
{
this.Accessors = new string[] { "Self" };
this.SupportRequirement = CommandSupport.Self;
this.AccessLevel = AccessLevel.Counselor;
this.Usage = "Self <command>";
this.Description = "Invokes the command on the commanding player.";
}
public override void Compile(Mobile from, BaseCommand command, ref string[] args, ref object obj)
{
if (command.ObjectTypes == ObjectTypes.Items)
return; // sanity check
obj = from;
}
}
}