Archiviert
13
0
Dieser Commit ist enthalten in:
Yaruma3341 2020-02-01 18:22:41 +01:00
Ursprung ae45b24364
Commit c6df7f9363

Datei anzeigen

@ -13,7 +13,6 @@ import org.bukkit.event.block.Action;
import org.bukkit.event.entity.ProjectileHitEvent; import org.bukkit.event.entity.ProjectileHitEvent;
import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerTeleportEvent; import org.bukkit.event.player.PlayerTeleportEvent;
import org.bukkit.event.vehicle.VehicleCollisionEvent;
import org.bukkit.event.vehicle.VehicleExitEvent; import org.bukkit.event.vehicle.VehicleExitEvent;
public class EnderPearlListener implements Listener { public class EnderPearlListener implements Listener {
@ -73,10 +72,5 @@ public class EnderPearlListener implements Listener {
player.teleport(event.getHitBlock().getLocation().add(0.0D, 1.0D, 0.0D)); player.teleport(event.getHitBlock().getLocation().add(0.0D, 1.0D, 0.0D));
} }
@EventHandler
public void handleVehicleCollision(VehicleCollisionEvent event) {
event.getVehicle().getPassenger().teleport(event.getVehicle().getLocation().subtract(event.getVehicle().getVelocity()));
}
} }