CortexPE / Commando

A Command Framework virion for PocketMine-MP
GNU Lesser General Public License v3.0
70 stars 53 forks source link

Example in readme - mistake or actual mapping #12

Closed inxomnyaa closed 5 years ago

inxomnyaa commented 5 years ago
protected function onRun(CommandSender $sender, string $aliasUsed, array $args): void {
        if(isset($args["name"])){
            $sender->sendMessage("Hello, " . $**name** . "!");
        } else {
            $this->sendUsage();
        }
    }

where does $name come from?

Only thing imagineable is the use of extract($args)

lukeeey commented 5 years ago

Mistake