Essentials
Essentials copied to clipboard
/otp uses sender name in no location message
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:
/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
https://github.com/EssentialsX/Essentials/blob/264b0ed660802ca060828984522071b2e986aad8/Essentials/src/main/java/com/earth2me/essentials/commands/Commandtpoffline.java#L24