Don't teleport if gates are closed.
This commit is contained in:
parent
252292819f
commit
580fda0273
@ -38,6 +38,11 @@ public class PlayerMoveListener implements Listener
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!gateAtLocation.isOpen()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Check for permission
|
// Check for permission
|
||||||
if (!hasPermission(event.getPlayer(), gateAtLocation)) {
|
if (!hasPermission(event.getPlayer(), gateAtLocation)) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user