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

Constructors

Properties

entityNamed: Entity

The entity that was named by the player.

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

newName: string

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

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

player: Player

Handle to the player that used the name tag.

This property can't be edited in restricted-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.

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