public void Kick( Mobile from, Mobile targ )
{
if ( !IsFriend( from ) || m_Friends == null )
return;
if ( targ.AccessLevel > AccessLevel.Player && from.AccessLevel <= targ.AccessLevel )
{
from.SendLocalizedMessage( 501346 ); // Uh oh...a bigger boot may be required!
}
else if ( IsFriend( targ ) )
{
from.SendLocalizedMessage( 501348 ); // You cannot eject a friend of the house!
}
else if ( targ is PlayerVendor )
{
from.SendLocalizedMessage( 501351 ); // You cannot eject a vendor.
}
else if ( !IsInside( targ ) )
{
from.SendLocalizedMessage( 501352 ); // You may not eject someone who is not in your house!
}
else if ( targ is BaseCreature && ((BaseCreature)targ).NoHouseRestrictions )
{
from.SendLocalizedMessage( 501347 ); // You cannot eject that from the house!
}
else
{
targ.MoveToWorld( BanLocation, Map );
from.SendLocalizedMessage( 1042840, targ.Name ); // ~1_PLAYER NAME~ has been ejected from this house.
targ.SendLocalizedMessage( 501341 ); /* You have been ejected from this house.
* If you persist in entering, you may be banned from the house.
*/
}
}