PlayerSomethingMessage() public static method

public static PlayerSomethingMessage ( [ player, [ action, [ target, [ reason ) : void
player [
action [
target [
reason [
return void
Example #1
0
        internal static void High5Handler(Player player, Command cmd)
        {
            string targetName = cmd.Next();

            if (targetName == null)
            {
                CdHighFive.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);
        }