Don't teleport if gates are closed.
This commit is contained in:
1 parent
252292819f
commit
580fda0273
1 file changed
+5
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user