mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
Fix /tp <target> acting like /tphere
This commit is contained in:
1 parent
9d004cf38c
commit
a0ce0dc52a
1 file changed
+2
@@ -339,12 +339,14 @@ public class TpCommand extends CommandBase {
|
|||||||
}
|
}
|
||||||
case "<target>" -> {
|
case "<target>" -> {
|
||||||
target = inputArgument;
|
target = inputArgument;
|
||||||
|
if (arguments.length == 2) {
|
||||||
if (inputExecutor instanceof Player playerExecutor) {
|
if (inputExecutor instanceof Player playerExecutor) {
|
||||||
if (NameAutoCompleter.getAutoCompletedName(target).equalsIgnoreCase(playerExecutor.getName()) && tpHereTarget != null) {
|
if (NameAutoCompleter.getAutoCompletedName(target).equalsIgnoreCase(playerExecutor.getName()) && tpHereTarget != null) {
|
||||||
TpHereCommand.executeTpHere(playerExecutor, tpHereTarget);
|
TpHereCommand.executeTpHere(playerExecutor, tpHereTarget);
|
||||||
return HandlerResponse.CANNOT_HANDLE_HANDLED_BY_TP_HERE;
|
return HandlerResponse.CANNOT_HANDLE_HANDLED_BY_TP_HERE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return HandlerResponse.CAN_HANDLE;
|
return HandlerResponse.CAN_HANDLE;
|
||||||
}
|
}
|
||||||
case "<player>" -> {
|
case "<player>" -> {
|
||||||
|
|||||||
Reference in new issue
Block a user