Don't teleport if gates are closed.

This commit is contained in:
Tobias Ottenweller 2013-05-19 12:01:55 +02:00
parent 252292819f
commit 580fda0273

View File

@ -38,6 +38,11 @@ public class PlayerMoveListener implements Listener
return;
}
if (!gateAtLocation.isOpen()) {
return;
}
// Check for permission
if (!hasPermission(event.getPlayer(), gateAtLocation)) {