Fixed standing on top of portal and warping

This commit is contained in:
Alastair 2016-04-01 22:52:38 +01:00
parent 4b24440ff3
commit b201c76e97

View File

@ -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) {