Modifier and Type | Method and Description |
---|---|
static Player |
getClosestPlayer(Location loc)
|
static Player |
getClosestPlayer(Player p)
|
static Map<Player,Double> |
getPlayersInRange(int range,
Location origin)
Gets any players within range of a specific location
|
static Map<Player,Double> |
getPlayersInRange(int range,
Player origin)
Gets any players within range of a specific player, exclusive of the
player themselves.
|
static UUID |
getUUID(String name)
Gets the most correct UUID for the
Player in the least expensive
way possible. |
static boolean |
hasCorrectOfflineUUID(String name)
Returns whether or not a player by the specified
name parameter
has played on this server before, or is currently online, thus resulting
in having a correct UUID |
static boolean |
isSafeLocation(Location in)
Determines whether or not a location is harmful if a player was to be
located there in the current instant of time (such as a teleport)
|
public static Map<Player,Double> getPlayersInRange(int range, Location origin)
range
- The range in which to look for playersorigin
- The Location
representing the center of the circlepublic static Map<Player,Double> getPlayersInRange(int range, Player origin)
range
- The range in which to look for playersorigin
- The Player
representing the center of the circlepublic static boolean isSafeLocation(Location in)
in
- The Location
to checktrue
if the location is safepublic static UUID getUUID(String name)
Player
in the least expensive
way possible. Note however, if there is no UUID information about the
player on the server (e.g., they never played before), it will send a
blocking web request to Mojang's serverspublic static boolean hasCorrectOfflineUUID(String name)
name
parameter
has played on this server before, or is currently online, thus resulting
in having a correct UUID
name
- The player name to look fortrue
if the UUID will be correctCopyright © 2017. All rights reserved.