Bug Report: TPA Command Sends Request to Incorrect User
Closed this issue · 2 comments
Description
While using the HuskHome plugin, issuing the command /tpa EnTIv
incorrectly sends the teleport request to EnTIv_2
instead of EnTIv
.
Steps to Reproduce
- Log in with a user that has permission to use teleport commands.
- Use the command
/tpa EnTIv
to send a teleport request to the user "EnTIv". - Observe that the teleport request is received by "EnTIv_2".
Expected Behavior
The teleport request should be received by the user "EnTIv", as specified in the command.
Actual Behavior
The teleport request is received by "EnTIv_2".
Possible Solution
This issue may be related to how the plugin handles usernames that are subsets of other usernames. It might be useful to check how the plugin searches and matches username inputs for teleport commands.
Your Environment
- Plugin Version: HuskHome-paper-4.7
- Server Version: purpur 1.20.4
Please look into this issue as it can affect gameplay significantly. Thank you!
Known issue, been a thing for years, unfortunately it's a problem at a low level involving the way in which the plugin message protocol targets usernames instead of UUIDs. Probably a thing to tackle in the next rewrite.
Think I found a logic issue which may fix this, please try in the latest commit build (https://william278.net/project/huskhomes -> "Alpha" channel).