Position Utility - C00kier/CookiersLib GitHub Wiki
Utility class for locating players relative to a specific position in the world.
Get players in radius
Returns all players within a given radius of a location.
getPlayersInRadius(Location position, double radius)
Parameters:
position
— the center location to search aroundradius
— the maximum distance from the center location to include players
Returns:
- A
set of players
located within the radius of the specified position - Returns an
empty set
if the world isnull