Modifier and Type | Method and Description |
---|---|
static org.bukkit.entity.Player |
getClosestPlayer(org.bukkit.Location loc)
Returns the closest
Player to a specific Location |
static org.bukkit.entity.Player |
getClosestPlayer(org.bukkit.entity.Player p)
Returns the closest
Player adjacent to another Player |
static Map<org.bukkit.entity.Player,Double> |
getPlayersInRange(int range,
org.bukkit.Location origin)
Gets any players within range of a specific location
|
static Map<org.bukkit.entity.Player,Double> |
getPlayersInRange(int range,
org.bukkit.entity.Player origin)
Gets any players within range of a specific player, exclusive of the
player themselves.
|
public static Map<org.bukkit.entity.Player,Double> getPlayersInRange(int range, org.bukkit.Location origin)
range
- The range in which to look for playersorigin
- The Location
representing the center of the circlepublic static Map<org.bukkit.entity.Player,Double> getPlayersInRange(int range, org.bukkit.entity.Player origin)
range
- The range in which to look for playersorigin
- The Player
representing the center of the circlepublic static org.bukkit.entity.Player getClosestPlayer(org.bukkit.entity.Player p)
Player
adjacent to another Player
p
- The Player
at the origin to search aroundPlayer
, or null
if no one else is in
the worldpublic static org.bukkit.entity.Player getClosestPlayer(org.bukkit.Location loc)
Player
to a specific Location
loc
- The Location
representing the origin to search fromPlayer
, or null
if no one is in the
worldCopyright © 2015. All rights reserved.