Nuggzy
Member
I am trying to generate a new command. I need to target a player and get their name. How would I get that using the following?
Code:
using System;
using Server;
namespace Server.Commands
{
public class NewCommand
{
public static void Initialize()
{
CommandSystem.Register( "NewCommand", AccessLevel.Player, new CommandEventHandler( NewCommand_OnCommand ) );
}
private static void NewCommand_OnCommand( CommandEventArgs args )
{
args.Mobile.SendGump( new MyGump() );
}
}
}