mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
SimpleCommandMap: parse config-defined commands according to the same rules as manually typed commands
This commit is contained in:
parent
eda4ae9181
commit
f70c36baf9
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user