From becbd562d677ad5f9689a60c1c729265454702c8 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 7 Jun 2022 19:47:45 +0100 Subject: [PATCH] FormattedCommandAlias: fixed incorrect arguments array being passed to the target --- src/command/FormattedCommandAlias.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/FormattedCommandAlias.php b/src/command/FormattedCommandAlias.php index f0ed923b5..21d2c0e70 100644 --- a/src/command/FormattedCommandAlias.php +++ b/src/command/FormattedCommandAlias.php @@ -85,7 +85,7 @@ class FormattedCommandAlias extends Command{ $target->timings->startTiming(); try{ - $target->execute($sender, $commandLabel, $args); + $target->execute($sender, $commandLabel, $commandArgs); }catch(InvalidCommandSyntaxException $e){ $sender->sendMessage($sender->getLanguage()->translate(KnownTranslationFactory::commands_generic_usage($target->getUsage()))); }finally{