Player paper/get_player_by_uuid

Get Player by UUID

Finds an online player by their UUID string.

Note: Only works for currently online players. If the UUID is malformed a warning is logged and found is false. Use Player UUID to retrieve a UUID from a player object.

Inputs

NameTypeOptionalDescription
uuid string UUID string of the player.

Outputs

NameTypeDescription
player player The found player (null if offline or UUID invalid).
found boolean True if the player is currently online.

Properties

KeyTypeDefaultDescription
uuid string "" UUID (fallback)

Examples

Look up a stored player

Retrieve a player using a UUID saved in a variable.

  1. Get Variable (player_uuid) → uuid → Get Player by UUID
  2. Get Player by UUID → found → Branch
  3. true → Get Player by UUID → player → Player Message