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