servuo/Scripts/Commands/Generic/Implementors/SelfCommandImplementor.cs

22 lines
689 B
C#
Raw Permalink Normal View History

2013-10-28 07:09:42 +00:00
namespace Server.Commands.Generic
{
public class SelfCommandImplementor : BaseCommandImplementor
{
public SelfCommandImplementor()
{
2020-04-16 21:29:55 -04:00
Accessors = new string[] { "Self" };
SupportRequirement = CommandSupport.Self;
AccessLevel = AccessLevel.Counselor;
Usage = "Self <command>";
Description = "Invokes the command on the commanding player.";
2013-10-28 07:09:42 +00:00
}
public override void Compile(Mobile from, BaseCommand command, ref string[] args, ref object obj)
{
if (command.ObjectTypes == ObjectTypes.Items)
return; // sanity check
obj = from;
}
}
}