Server.Guilds.Guild.GuildProps_OnCommand C# (CSharp) Méthode

GuildProps_OnCommand() private méthode

private GuildProps_OnCommand ( CommandEventArgs e ) : void
e CommandEventArgs
Résultat void
		private static void GuildProps_OnCommand( CommandEventArgs e )
		{
			string arg = e.ArgString.Trim();
			Mobile from = e.Mobile;

			if( arg.Length == 0 )
			{
				e.Mobile.Target = new GuildPropsTarget();
			}
			else
			{
				Guild g = null;

                int id;

                if( int.TryParse( arg, out id ) )
                    g = Guild.Find( id ) as Guild;

				if( g == null )
				{
					g = Guild.FindByAbbrev( arg ) as Guild;

					if( g == null )
						g = Guild.FindByName( arg ) as Guild;
				}

				if ( g != null )
				{
					from.SendGump( new PropertiesGump( from, g ) );
				}
			}

		}