Update BorderCheckTask.java

This commit is contained in:
NShadeIV 2015-11-01 20:27:15 -08:00
parent 98c98b8618
commit bb82f464f9

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