Closed EpicPinkCreeper closed 4 years ago
I am using the latest version of pocketmine and the Specter plugin. I tried running the command "/specter spawn playerName" and it gave this error:
[21:22:38] [Server thread/CRITICAL]: TypeError: "Argument 2 passed to pocketmine\Player::__construct() must be of the type string, null given, called in phar://C:/Users/epicp/Downloads/MCPE SERVERS/PocketMine-MP - YTGUILDS/plugins/Specter_dev-23.phar/src/specter/network/SpecterPlayer.php on line 13" (EXCEPTION) in "src/pocketmine/Player" at line 683 [21:22:38] [Server thread/DEBUG]: #0 Specter_dev-23.phar/src/specter/network/SpecterPlayer(13): pocketmine\Player->__construct(specter\network\SpecterInterface object, NULL , string SPECTER, integer 19133) [21:22:38] [Server thread/DEBUG]: #1 Specter_dev-23.phar/src/specter/network/SpecterInterface(181): specter\network\SpecterPlayer->__construct(specter\network\SpecterInterface object, NULL , string SPECTER, integer 19133) [21:22:38] [Server thread/DEBUG]: #2 Specter_dev-23.phar/src/specter/Specter(45): specter\network\SpecterInterface->openSession(string playerName, string SPECTER, integer 19133) [21:22:38] [Server thread/DEBUG]: #3 src/pocketmine/command/PluginCommand(58): specter\Specter->onCommand(pocketmine\Player object, pocketmine\command\PluginCommand object, string specter, array Array()) [21:22:38] [Server thread/DEBUG]: #4 src/pocketmine/command/SimpleCommandMap(258): pocketmine\command\PluginCommand->execute(pocketmine\Player object, string specter, array Array()) [21:22:38] [Server thread/DEBUG]: #5 src/pocketmine/Server(1995): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string specter spawn playerName) [21:22:38] [Server thread/DEBUG]: #6 src/pocketmine/Player(2123): pocketmine\Server->dispatchCommand(pocketmine\Player object, string specter spawn playerName) [21:22:38] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(220): pocketmine\Player->chat(string /specter spawn playerName) [21:22:38] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object) [21:22:38] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) [21:22:38] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object) [21:22:38] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) [21:22:38] [Server thread/DEBUG]: #12 src/pocketmine/Player(2943): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) [21:22:38] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(147): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) [21:22:38] [Server thread/DEBUG]: #14 vendor/pocketmine/raklib/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 68.12.102.148 58280, raklib\protocol\EncapsulatedPacket object, integer 0) [21:22:38] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(88): raklib\server\ServerHandler->handlePacket() [21:22:38] [Server thread/DEBUG]: #16 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process() [21:22:38] [Server thread/DEBUG]: #17 src/pocketmine/Server(2540): pocketmine\network\Network->processInterfaces() [21:22:38] [Server thread/DEBUG]: #18 src/pocketmine/Server(2291): pocketmine\Server->tick() [21:22:38] [Server thread/DEBUG]: #19 src/pocketmine/Server(2164): pocketmine\Server->tickProcessor() [21:22:38] [Server thread/DEBUG]: #20 src/pocketmine/Server(1747): pocketmine\Server->start() [21:22:38] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(305): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\epicp\Downloads\MCPE SERVERS\PocketMine-MP - YTGUILDS\, string C:\Users\epicp\Downloads\MCPE SERVERS\PocketMine-MP - YTGUILDS\plugins\) [21:22:38] [Server thread/DEBUG]: #22 C:/Users/epicp/Downloads/MCPE SERVERS/PocketMine-MP - YTGUILDS/PocketMine-MP.phar(1): require(string phar://C:/Users/epicp/Downloads/MCPE SERVERS/PocketMine-MP - YTGUILDS/PocketMine-MP.phar/src/pocketmine/PocketMine.php)```
/s respawn <name> fixed in https://github.com/falkirks/Specter/commit/10c118e64d2a1e9b86be1a2969cdf04e318127d0
/s respawn <name>
I am using the latest version of pocketmine and the Specter plugin. I tried running the command "/specter spawn playerName" and it gave this error: