fCraft.ChatCommands.High5Handler C# (CSharp) Method

High5Handler() static private method

static private High5Handler ( Player player, Command cmd ) : void
player Player
cmd Command
return void
        internal static void High5Handler( Player player, Command cmd )
        {
            string targetName = cmd.Next();
            if ( targetName == null ) {
                CdHigh5.PrintUsage( player );
                return;
            }
            Player target = Server.FindPlayerOrPrintMatches( player, targetName, false, true );
            if ( target == null )
                return;
            if ( target == player ) {
                player.Message( "&WYou cannot high five yourself." );
                return;
            }
            Server.Players.CanSee( target ).Except( target ).Message( "{0}&S was just &chigh fived &Sby {1}&S", target.ClassyName, player.ClassyName );
            IRC.PlayerSomethingMessage( player, "high fived", target, null );
            target.Message( "{0}&S high fived you.", player.ClassyName );
        }