March 22, 20196 yr Hi, I am trying to code this bot to attack a player if it comes within a radius of 5 tiles and the player is not one of the following names ("User1", "User2"). I have this below code but not sure where to go. any advice on how I can check based on player usernames? players.getAll().stream().anyMatch(f -> myPlayer().getArea(5).contains(f));
March 22, 20196 yr Filter<Player> playerFilter = player -> myPlayer().getArea(5).contains(player) && player.isVisible() && !playerNames.contains(player.getName()); Edited March 22, 20196 yr by Naked
Create an account or sign in to comment