IcCookies 24 Posted February 14, 2017 Hey guys, Just wanted to know how to check if another player(not yourself) is in an area? Thanks
Xephy 237 Posted February 14, 2017 getPlayers().all(player -> player != null && AREANAME.contains(player)); Pretty sure this works.
Im A Baller 348 Posted February 14, 2017 public boolean containsPlayer(Area area) { return getPlayers().all(p -> p != null && area.contains(p) && !p.equals(getLocalPlayer())).size() > 0; }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.