Inheritance: PlayerKickedEventArgs
Ejemplo n.º 1
0
 internal static void RaisePlayerBeingKickedEvent( PlayerBeingKickedEventArgs e ) {
     var h = PlayerBeingKicked;
     if( h != null ) h( null, e );
 }
Ejemplo n.º 2
0
 ///<summary>
 ///Suggest ban for player that was kicked 2 times in 2 days
 ///<summary>
 public static void PlayerKicked( object sender, PlayerBeingKickedEventArgs e )
 {
     PlayerInfo info = e.Player.Info;
     if ( info.TimeSinceLastKick < TimeSpan.FromDays( 1 ) && info.TimesKicked > 0 && Settings.AnnounceSuggestBan ) {
         Methods.SendStaff( info.ClassyName + Color.PM + " has been kicked 2 times within the last two days. Please review if a ban is neccessary" );
     }
 }