public void SetName( SpeechEventArgs e )
{
if ( CheckDecay() )
return;
if ( e.Mobile.AccessLevel < AccessLevel.GameMaster && e.Mobile != m_Owner )
{
if ( m_TillerMan != null )
m_TillerMan.Say( 1042880 ); // Arr! Only the owner of the ship may change its name!
return;
}
else if ( !e.Mobile.Alive )
{
if ( m_TillerMan != null )
m_TillerMan.Say( 502582 ); // You appear to be dead.
return;
}
if ( e.Speech.Length > 8 )
{
string newName = e.Speech.Substring( 8 ).Trim();
if ( newName.Length == 0 )
newName = null;
Rename( newName );
}
}