This commit is contained in:
NShadeIV 2017-05-05 04:29:51 +00:00 committed by GitHub
commit 7438dfe57b
2 changed files with 5 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public class BorderCheckTask implements Runnable
return null;
// if player is in bypass list (from bypass command), allow them beyond border; also ignore players currently being handled already
if (Config.isPlayerBypassing(player.getUniqueId()) || handlingPlayers.contains(player.getName().toLowerCase()))
if (Config.isPlayerBypassing(player.getUniqueId()) || handlingPlayers.contains(player.getName().toLowerCase()) || Config.HasPermission(player, "autobypass", false))
return null;
// tag this player as being handled so we can't get stuck in a loop due to Bukkit currently sometimes repeatedly providing incorrect location through teleport event

View File

@ -51,6 +51,7 @@ permissions:
children:
worldborder.bypass: true
worldborder.bypasslist: true
worldborder.autobypass: true
worldborder.clear: true
worldborder.debug: true
worldborder.delay: true
@ -82,6 +83,9 @@ permissions:
worldborder.bypasslist:
description: Can get list of players with border bypass enabled
default: op
worldborder.autobypass:
description: Bypasses borders without needed to enable bypass mode
default: op
worldborder.clear:
description: Can remove any border
default: op