getPlayer

public abstract Player getPlayer(String name)

Gets player object by the given username.

This method may not return objects for offline players.

Return

getClassById player if one was found, null otherwise

Parameters

name

the name to look up


public abstract Player getPlayer(UUID id)

Gets the player with the given UUID.

Return

getClassById player object if one was found, null otherwise

Parameters

id

UUID of the player to retrieve