Skip to main content

Util

Utility functions

Hierarchy

Index

Constructors

publicconstructor

  • Parameters

    Returns Util

Methods

publicstaticgetUUID

  • getUUID(name: string): Promise<string>
  • Get the UUID of a player by providing their name


    Parameters

    • name: string

      The name of the player

    Returns Promise<string>

publicstaticgetUsername

  • getUsername(uuid: string): Promise<string>
  • Get player's name from their UUID


    Parameters

    • uuid: string

      The uuid of the player

    Returns Promise<string>

publicstaticisUUID

  • isUUID(uuid: string): boolean
  • Check whether the provided UUID is a valid UUID or not


    Parameters

    • uuid: string

      The UUID to check

    Returns boolean