Skip to main content

Entity::id

This property is used for getting an entity ID. The ID is a unique identifier for the entity.

Getter

Example

This event will log to the console the players name and the ID they have been assigned [when joining the server](/playerjoin).

See Also