public void OnRespawn(ModCommandSender sender)
        {
            if (!sender.IsPlayer)
            {
                return;
            }

            // instead of ServerRespawnEntity we should use RestartCharacter with resurrect set to true
            sender.PlayerEntity.RestartCharacter(true);
            //sender.PlayerEntity.ServerRespawnEntity();
        }
        public void OnKill(ModCommandSender sender)
        {
            if (!sender.IsPlayer)
            {
                return;
            }

            sender.PlayerEntity.ServerKillEntity(new MDamageResult(
                                                     new MDamageRequest(new MDamageData(sender.PlayerEntity), sender.PlayerEntity),
                                                     new MDamageInfo(
                                                         (int)sender.PlayerEntity.StatisticManager.GetStatistic(StatisticName.Health).FirstValue), true));
        }