Function getPlayerNameFromUUIDSync

  • Gets a player's name from their UUID using the provided dynamic properties data.

    Only works if the player's name was stored in an add-on's dynamic properties with their ID linked to it, and it only works for a hardcoded list of add-ons, if you have your own add-on that you would like this to be able to read the player's names from, contact 8Crafter, or make a pull request.

    Parameters

    • dynamicProperties: NBT

      The dynamic properties data, should be the data from the DynamicProperties LevelDB key.

    • uuid: string | bigint

      The UUID of the play to get the name of.

    Returns null | string

    The name of the player, or null if the player's name cannot be found .