feat: allow the world border to be larger than the road surrounding the outermost plots

- Closes #2962
This commit is contained in:
dordsor21
2022-11-14 15:00:14 +00:00
parent 25ce7a83f1
commit fa53b9c3fe
4 changed files with 43 additions and 4 deletions

View File

@ -596,7 +596,7 @@ public class PlayerEventListener implements Listener {
this.tmpTeleport = true;
return;
}
int border = area.getBorder();
int border = area.getBorder(true);
int x1;
if (x2 > border && this.tmpTeleport) {
if (!Permissions.hasPermission(pp, Permission.PERMISSION_ADMIN_BYPASS_BORDER)) {
@ -687,7 +687,7 @@ public class PlayerEventListener implements Listener {
this.tmpTeleport = true;
return;
}
int border = area.getBorder();
int border = area.getBorder(true);
int z1;
if (z2 > border && this.tmpTeleport) {
if (!Permissions.hasPermission(pp, Permission.PERMISSION_ADMIN_BYPASS_BORDER)) {