/** * Returns a list of the players outside a border with the given diameter. The check is performed * for a circular or squared border, following the configuration. * * @param diameter * @return */ public HashSet<Player> getPlayersOutside(int diameter) { HashSet<Player> playersOutside = new HashSet<Player>(); for (final Player player : p.getGameManager().getOnlineAlivePlayers()) { if (!isInsideBorder(player.getLocation(), diameter)) { playersOutside.add(player); } } return playersOutside; }