@Override
    protected void onAction(Player player, Location from, Location to) {

        if(task == null) {
            if (active) {
                if (!getCuboid().intersects(to)) {
                    update(false);
                }
            } else {
                update(true);
            }
        }
    }