mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 13:25:16 +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 pocketmine\utils\TextFormat;
|
||||||
use function array_shift;
|
use function array_shift;
|
||||||
use function count;
|
use function count;
|
||||||
use function explode;
|
|
||||||
use function implode;
|
use function implode;
|
||||||
use function strcasecmp;
|
use function strcasecmp;
|
||||||
use function strpos;
|
use function strpos;
|
||||||
@ -249,7 +248,7 @@ class SimpleCommandMap implements CommandMap{
|
|||||||
$recursive = [];
|
$recursive = [];
|
||||||
|
|
||||||
foreach($commandStrings as $commandString){
|
foreach($commandStrings as $commandString){
|
||||||
$args = explode(" ", $commandString);
|
$args = CommandStringHelper::parseQuoteAware($commandString);
|
||||||
$commandName = array_shift($args);
|
$commandName = array_shift($args);
|
||||||
$command = $this->getCommand($commandName);
|
$command = $this->getCommand($commandName);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user