Hi, could someone do this? I don't think it would be that hard, but I tried it myself but I'm having so much trouble (still learning Java). Thank you!
Simply: Code:java ArrayList<Entity> nearby = (ArrayList<Entity>) player.getNearbyEntities(50, 50, 50);for(int x = 0; x < nearby.size(); x++){ if(nearby.get(x) instanceof Player) { Player target = (Player) nearby.get(x); player.sendMessage("Player " + target.getDisplayName() + " is near you!"); }}