diff --git a/src/de/craftinc/gates/listeners/PlayerMoveListener.java b/src/de/craftinc/gates/listeners/PlayerMoveListener.java index cf97b85..584badb 100644 --- a/src/de/craftinc/gates/listeners/PlayerMoveListener.java +++ b/src/de/craftinc/gates/listeners/PlayerMoveListener.java @@ -37,6 +37,11 @@ public class PlayerMoveListener implements Listener if (gateAtLocation == null) { return; } + + if (!gateAtLocation.isOpen()) { + return; + } + // Check for permission if (!hasPermission(event.getPlayer(), gateAtLocation)) {