Script API - v26.50.24
    Preparing search index...

    Class PlayerUseNameTagAfterEventBeta

    Contains information related to when a player successfully names an Entity with a named Name Tag item.

    export class PlayerUseNameTagAfterEvent {
    private constructor();
    entityNamed: Entity;
    newName: string;
    player: Player;
    previousName?: string;
    }
    Index

    Constructors

    Properties

    entityNamed: Entity

    The entity that was named by the player.

    restricted-execution-read-only - This property can't be edited in restricted-execution mode.

    This property can't be read in early-execution mode.

    newName: string

    The new name that the player has given to the entity.

    restricted-execution-read-only - This property can't be edited in restricted-execution mode.

    This property can't be read in early-execution mode.

    player: Player

    Handle to the player that used the name tag.

    restricted-execution-read-only - This property can't be edited in restricted-execution mode.

    This property can't be read in early-execution mode.

    previousName?: string

    The previous name of the entity before the player used the name tag. This will be undefined if the entity was not previously named.

    restricted-execution-read-only - This property can't be edited in restricted-execution mode.

    This property can't be read in early-execution mode.