feat: add configurable border size (#4213)

- allows players to travel past border, but not claim
 - closes #2962
This commit is contained in:
Jordan
2023-10-31 10:51:19 +00:00
committed by GitHub
parent 1c3776b605
commit 3cc770970f
4 changed files with 45 additions and 4 deletions

View File

@ -608,7 +608,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 (!pp.hasPermission(Permission.PERMISSION_ADMIN_BYPASS_BORDER)) {
@ -703,7 +703,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 (!pp.hasPermission(Permission.PERMISSION_ADMIN_BYPASS_BORDER)) {