Action PLAYER_ID

This action is used when it is necessary to get the UUID of the player by its nickname and vice versa - the nickname of the player by its UUID.

PLAYER_ID [player] [online] [varid] [varname]

ElementPossible ValuesDescription
playerplayer:<Player>Nickname of the player or his UUID. The name of the player (owner of the personal variable). If the parameter [player] is omitted, a global variable will be used.
onlineonline:<true/false>Obtaining player information from the Mojang database (online: true) or from the local server (online: false). Default: online:false
varidvarid:<VariableUUID>The variable UUID.
varnamevarname:<VariableName>The variable player name.

Temporary placeholders created by this action

PlaceholderDescription
%playerid%Will get UUID.
%playername%Will get Nickname.

Examples

  1. Get the UUID of the Offline player.
EXEC:
  uuid:
    actions:
    - PLAYER_ID=player:MaxDikiy online:false
    - 'LOG=&6UUID: &r%playerid%'
    - 'LOG=&6Player: &r%playername%'
  1. Get the player's nickname Online.
EXEC:
  uuid:
    actions:
    - PLAYER_ID=player:4a3fa4bf-456a-4a45-b25e-0719d53a7395 online:true
    - 'LOG=&6UUID: &r%playerid%'
    - 'LOG=&6Player: &r%playername%'