package us.crast.flyingtub;

import java.util.logging.Logger;

import org.bukkit.entity.EntityType;
import org.bukkit.entity.Minecart;
import org.bukkit.entity.Vehicle;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.vehicle.VehicleCreateEvent;
import org.bukkit.event.vehicle.VehicleEnterEvent;
import org.bukkit.util.Vector;

public final class TubFlightListener implements Listener {

	@SuppressWarnings("unused")
	private final Logger log;
	private final FTConfig config;
    private Vector desiredVelocityMod;

	public TubFlightListener(FlyingTub plugin) {
		this.log = plugin.getLogger();
		this.config = plugin.getFTConfig();
		this.setup();
	}
	
	private void setup() {
	    desiredVelocityMod = new Vector(
	            this.config.horizontalSpeed(), 
	            this.config.verticalSpeed(), 
	            this.config.horizontalSpeed()
	    );
	}
	
	@EventHandler
	public final void onVehicleEnter(VehicleEnterEvent event) {
		//log.info("vehicle enter");
		fixCart(event.getVehicle());
	}
	
	@EventHandler
	public final void onVehicleCreate(VehicleCreateEvent event) {
		//log.info("vehicle create");
		fixCart(event.getVehicle());
	}
	
	private void fixCart(Vehicle cart) {
		if (cart.getType() == EntityType.MINECART) {
            ((Minecart)cart).setFlyingVelocityMod(desiredVelocityMod);
		}
	}
}

@@ -26,42 +26,8 @@
 b;%0A%0A
-import java.util.logging.Logger;%0A%0A
 impo
@@ -59,16 +59,16 @@
 tyType;%0A
+
 import o
@@ -399,64 +399,8 @@
  %7B%0A%0A
-%09@SuppressWarnings(%22unused%22)%0A%09private final Logger log;%0A
 %09pri
@@ -517,41 +517,8 @@
 ) %7B%0A
-%09%09this.log = plugin.getLogger();%0A
 %09%09th
@@ -858,39 +858,8 @@
 ) %7B%0A
-%09%09//log.info(%22vehicle enter%22);%0A
 %09%09fi
@@ -897,32 +897,32 @@
 %0A%09@EventHandler%0A
+
 %09public final vo
@@ -972,40 +972,8 @@
 ) %7B%0A
-%09%09//log.info(%22vehicle create%22);%0A
 %09%09fi

Remove spurious logging