I am curious if there is anyways to override an AccessLevel command.

Say I have something that on double click of a stone is doing something like this
Code:
public override void OnDoubleClick(Mobile from)
        {

            string prefix = Server.Commands.CommandSystem.Prefix;
            foreach (Generic.CommandEntry entry in Generic.Commands)
            {
                    CommandSystem.Handle(from, prefix + entry.CreateCommand);
            }
        }

But that commands accesslevel using would be set to Accesslevel.Administrator......Is there any way to override it just on that double click instead of having to Change the access level of the command itself?
 
Isnt there a delegate assigned in the command entry?

Code:
CommandEventArgs e = new CommandEventArgs(from, command, argString, args);
entry.Handler(e);
EventSink.InvokeCommand(e);
 
Back