protected override void OnTarget( Mobile from, object o )
{
if( !BaseCommand.IsAccessible( from, o ) )
{
from.SendMessage( "That is not accessible." );
return;
}
Guild g = null;
if( o is Guildstone )
{
Guildstone stone = o as Guildstone;
if( stone.Guild == null || stone.Guild.Disbanded )
{
from.SendMessage( "The guild associated with that Guildstone no longer exists" );
return;
}
else
g = stone.Guild;
}
else if( o is Mobile )
{
g = ((Mobile)o).Guild as Guild;
}
if( g != null )
{
from.SendGump( new PropertiesGump( from, g ) );
}
else
{
from.SendMessage( "That is not in a guild!" );
}
}
}