From b201c76e973bf56919e4607b9ac5c5a0b9a79271 Mon Sep 17 00:00:00 2001 From: Alastair Date: Fri, 1 Apr 2016 22:52:38 +0100 Subject: [PATCH] Fixed standing on top of portal and warping --- src/com/sekwah/advancedportals/listeners/Listeners.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/sekwah/advancedportals/listeners/Listeners.java b/src/com/sekwah/advancedportals/listeners/Listeners.java index 6aa3845f..e6ff8685 100644 --- a/src/com/sekwah/advancedportals/listeners/Listeners.java +++ b/src/com/sekwah/advancedportals/listeners/Listeners.java @@ -199,6 +199,7 @@ public class Listeners implements Listener { } } + @EventHandler public void onDamEvent(EntityDamageEvent event) { if (!Portal.portalsActive) { @@ -229,7 +230,8 @@ public class Listeners implements Listener { } - + // https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/player/PlayerTeleportEvent.TeleportCause.html + // Also listen to this possibly. @SuppressWarnings("deprecation") @EventHandler public void onPortalEvent(PlayerPortalEvent event) {