bugfixes
Dieser Commit ist enthalten in:
Ursprung
d6ababec97
Commit
b56b4577aa
@ -59,7 +59,7 @@ public class EnderPearlListener implements Listener {
|
||||
@EventHandler(priority = EventPriority.NORMAL)
|
||||
public void handlePlayerTeleport(PlayerTeleportEvent event) {
|
||||
if(event.getCause() != PlayerTeleportEvent.TeleportCause.ENDER_PEARL) return;
|
||||
if(event.getPlayer().isOnGround()/*event.getTo().distance(event.getPlayer().getLocation()) > 0*/) return;
|
||||
if(event.getPlayer().isInsideVehicle()/*event.getTo().distance(event.getPlayer().getLocation()) > 0*/) return;
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren