bugfixes
Dieser Commit ist enthalten in:
Ursprung
ae45b24364
Commit
c6df7f9363
@ -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()));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren