inxomnyaa / MagicWE

Lag free asynchronous world editor for PMMP with plenty of options
https://poggit.pmmp.io/ci/inxomnyaa/MagicWE
GNU General Public License v3.0
102 stars 83 forks source link

Error when executing command in console #117

Closed MCPE-PC closed 5 years ago

MCPE-PC commented 5 years ago

When I run command(/pos1) in console: [MagicWE] Argument 1 passed to xenialdan\MagicWE2\API::getSession() must be an instance of pocketmine\Player, instance of pocketmine\command\ConsoleCommandSender given, called in phar:///home/mcpepc/vem/plugins/MagicWE2.phar/src/xenialdan/MagicWE2/commands/Pos1Command.php on line 39 Other commands, too.

EDIT: I am using thebigsmileXD/MagicWE2@c0570a7

inxomnyaa commented 5 years ago

Intentional. A console can not use the commands.

If you want to fill/copy etc. anyways without the need of a player, you may use the api.