HuskHomes icon indicating copy to clipboard operation
HuskHomes copied to clipboard

Unable to /tp number-only usernames to coordinates

Open WiIIiam278 opened this issue 1 year ago • 1 comments

image

probably due to the numbers being recognized as a coordinate themselves.

WiIIiam278 avatar Sep 23 '22 22:09 WiIIiam278

A nasty bug to fix unfortunately as it's caused by a quirk in the logic for parsing the modular command arguments of /tp https://github.com/WiIIiam278/HuskHomes2/blob/88802db702331cd05116880df9ca4a3f0f87820b/common/src/main/java/net/william278/huskhomes/command/TpCommand.java#L34-L38

Essentially, isCoordinate is returning true on usernames that are also technically valid coordinates. Will need to adjust this so that it attempts to find a matching player (or world?) first. Kind of a hard-to-win at issue!

WiIIiam278 avatar Oct 29 '22 12:10 WiIIiam278