Beispiel #1
0
        protected override void ReceiveOnClient()
        {
            Player player = Main.player[this.PlayerWho];

            if (player == null || !player.active)
            {
                LogHelpers.Log("ModHelpers.PlayerPermaDeathProtocol.ReceiveWithClient - Inactive player indexed as " + this.PlayerWho);
                return;
            }

            PlayerHelpers.ApplyPermaDeath(player, this.Msg);
        }