SimpleCommandMap: parse config-defined commands according to the same rules as manually typed commands

This commit is contained in:
Dylan K. Taylor 2022-05-10 15:21:39 +01:00
parent eda4ae9181
commit f70c36baf9
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -71,7 +71,6 @@ use pocketmine\Server;
use pocketmine\utils\TextFormat;
use function array_shift;
use function count;
use function explode;
use function implode;
use function strcasecmp;
use function strpos;
@ -249,7 +248,7 @@ class SimpleCommandMap implements CommandMap{
$recursive = [];
foreach($commandStrings as $commandString){
$args = explode(" ", $commandString);
$args = CommandStringHelper::parseQuoteAware($commandString);
$commandName = array_shift($args);
$command = $this->getCommand($commandName);