Skip to content

Look command uses player.getName() instead of player.name #1

@seanohue

Description

@seanohue

Describe the bug

player.getName is not a function
occurs if the player is not in a valid room.

To Reproduce
Add player to an invalid room. The logging and output to player fails due to this bug, the server console displays the above error message.

Expected behavior
Correct logging should be output to server and a sensible error message to the player as well.
Can be fixed by using player.name

Error logs

player.getName is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions