public void update(DodgeballManager mm, CubeSerializable ta, CubeSerializable sa, Location newLoc) {
        if(health <= 0) {
            this.health = 10;
            player.setAllowFlight(true);
            player.setFlying(true);
            player.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, Integer.MAX_VALUE, 1));
            player.getInventory().clear();
            player.getEquipment().clear();
            m.onPlayerDeath(this);
        }
        if(isSpectator) {
            player.setAllowFlight(true);
            player.setFlying(true);
            this.health = 10;
            sa.setPlayerInArea(player, newLoc);
        } else {
            ta.setPlayerInArea(player, newLoc);
        }
        player.setHealth(Math.max(0, health) * playerHealthUnit);
        player.setFoodLevel(10);
        if(!this.isInit) {
            this.init();
            this.isInit = true;
        }
        this.isInit = false;
    }