You should put this:
    VehicleMoveEvent moveEvent = new VehicleMoveEvent(vehicle, from, to);
    server.getPluginManager().callEvent();
    if (moveEvent.isCancelled()) {
        return;
    }