Skip to content
fromgate edited this page Jul 7, 2017 · 3 revisions

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]

Element Possible Values Description
player player:<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.
online online:<true/false> Obtaining player information from the Mojang database (online: true) or from the local server ( online: false). Default: online:false
varid varid:<VariableUUID>The variable UUID.
varname varname:<VariableName> The variable player name.

Temporary placeholders created by this action

Placeholder Description
%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%'
Clone this wiki locally