FormattedCommandAlias: fixed incorrect arguments array being passed to the target

This commit is contained in:
Dylan K. Taylor 2022-06-07 19:47:45 +01:00
parent 82edb20e0c
commit becbd562d6
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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{