Skip to content

/otp uses sender name in no location message #6323

@Emilxyz

Description

@Emilxyz

Type of bug

Other unexpected behaviour

/ess dump all output

N/A

Error log (if applicable)

No response

Bug description

The /otp command uses the sender name instead of the target name in the no location found message

Steps to reproduce

Assuming I'm Player1 trying to teleport to offline Player2 that has no last known location:

  1. /otp Player2

Expected behaviour

Unable to find the last known position of Player2

Actual behaviour

Unable to find the last known position of Player1

Additional Information

This should use target instead of user in the translation argument here

user.sendTl("teleportOfflineUnknown", user.getDisplayName());

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: unconfirmedPotential bugs that need replicating to verify.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions