Don't teleport if gates are closed.
This commit is contained in:
parent
252292819f
commit
580fda0273
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user