Closed say123d1 closed 5 years ago
So, whenever I try to create an NPC (Slapper) I get kicked for Internal Server Error The command I run is: /slapper spawn human TP To Your Island
Console: [00:53:11] [Server thread/CRITICAL]: ErrorException: "include(phar:///home/container/plugins/Slapper.phar/src/slapper/events/SlapperCreationEvent.php): failed to open stream: phar error: Cannot open phar archive "/home/container/plugins/Slapper.phar" for reading" (EXCEPTION) in "vendor/pocketmine/spl/BaseClassLoader" at line 126 [00:53:11] [Server thread/DEBUG]: #0 vendor/pocketmine/spl/BaseClassLoader(126): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[208] include(phar:///home/container/plugins/Slapper.phar/src/slapper/events/SlapperCr, string[83] phar:///home/container/PocketMine-MP.phar/vendor/pocketmine/spl/BaseClassLoader., integer 126, array[2]) [00:53:11] [Server thread/DEBUG]: #1 vendor/pocketmine/spl/BaseClassLoader(126): include()
[00:53:11] [Server thread/DEBUG]: #3 plugins/Slapper.phar/src/slapper/Main(559): spl_autoload_call(string[35] slapper\events\SlapperCreationEvent) [00:53:11] [Server thread/DEBUG]: #4 src/pocketmine/command/PluginCommand(58): slapper\Main->onCommand(object pocketmine\Player, object pocketmine\command\PluginCommand, string[7] slapper, array[4]) [00:53:11] [Server thread/DEBUG]: #5 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\PluginCommand->execute(object pocketmine\Player, string[7] slapper, array[6]) [00:53:11] [Server thread/DEBUG]: #6 src/pocketmine/Server(2019): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[43] slapper spawn human ..l..aTP To Your Island) [00:53:11] [Server thread/DEBUG]: #7 src/pocketmine/Player(2231): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[43] slapper spawn human ..l..aTP To Your Island) [00:53:11] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(240): pocketmine\Player->chat(string[44] /slapper spawn human ..l..aTP To Your Island) [00:53:11] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket) [00:53:11] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [00:53:11] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/protocol/BatchPacket(123): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket) [00:53:11] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [00:53:11] [Server thread/DEBUG]: #13 src/pocketmine/Player(3124): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [00:53:11] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [00:53:11] [Server thread/DEBUG]: #15 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[18] 135.0.179.46 60900, object raklib\protocol\EncapsulatedPacket, integer 0) [00:53:11] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [00:53:11] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [00:53:11] [Server thread/DEBUG]: #18 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [00:53:11] [Server thread/DEBUG]: #19 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [00:53:11] [Server thread/DEBUG]: #20 src/pocketmine/Server(2338): pocketmine\snooze\SleeperHandler->sleepUntil(double 1561596791.1366) [00:53:11] [Server thread/DEBUG]: #21 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor() [00:53:11] [Server thread/DEBUG]: #22 src/pocketmine/Server(1774): pocketmine\Server->start() [00:53:11] [Server thread/DEBUG]: #23 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[00:53:11] [Server thread/INFO]: ChoosyproDev left the game
Download again the Slapper.phar and replace it in the plugins' folder
So, whenever I try to create an NPC (Slapper) I get kicked for Internal Server Error The command I run is: /slapper spawn human TP To Your Island
Console: [00:53:11] [Server thread/CRITICAL]: ErrorException: "include(phar:///home/container/plugins/Slapper.phar/src/slapper/events/SlapperCreationEvent.php): failed to open stream: phar error: Cannot open phar archive "/home/container/plugins/Slapper.phar" for reading" (EXCEPTION) in "vendor/pocketmine/spl/BaseClassLoader" at line 126 [00:53:11] [Server thread/DEBUG]: #0 vendor/pocketmine/spl/BaseClassLoader(126): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[208] include(phar:///home/container/plugins/Slapper.phar/src/slapper/events/SlapperCr, string[83] phar:///home/container/PocketMine-MP.phar/vendor/pocketmine/spl/BaseClassLoader., integer 126, array[2]) [00:53:11] [Server thread/DEBUG]: #1 vendor/pocketmine/spl/BaseClassLoader(126): include()
[00:53:11] [Server thread/DEBUG]: #3 plugins/Slapper.phar/src/slapper/Main(559): spl_autoload_call(string[35] slapper\events\SlapperCreationEvent) [00:53:11] [Server thread/DEBUG]: #4 src/pocketmine/command/PluginCommand(58): slapper\Main->onCommand(object pocketmine\Player, object pocketmine\command\PluginCommand, string[7] slapper, array[4]) [00:53:11] [Server thread/DEBUG]: #5 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\PluginCommand->execute(object pocketmine\Player, string[7] slapper, array[6]) [00:53:11] [Server thread/DEBUG]: #6 src/pocketmine/Server(2019): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[43] slapper spawn human ..l..aTP To Your Island) [00:53:11] [Server thread/DEBUG]: #7 src/pocketmine/Player(2231): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[43] slapper spawn human ..l..aTP To Your Island) [00:53:11] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(240): pocketmine\Player->chat(string[44] /slapper spawn human ..l..aTP To Your Island) [00:53:11] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket) [00:53:11] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [00:53:11] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/protocol/BatchPacket(123): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket) [00:53:11] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [00:53:11] [Server thread/DEBUG]: #13 src/pocketmine/Player(3124): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [00:53:11] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [00:53:11] [Server thread/DEBUG]: #15 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[18] 135.0.179.46 60900, object raklib\protocol\EncapsulatedPacket, integer 0) [00:53:11] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [00:53:11] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [00:53:11] [Server thread/DEBUG]: #18 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [00:53:11] [Server thread/DEBUG]: #19 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [00:53:11] [Server thread/DEBUG]: #20 src/pocketmine/Server(2338): pocketmine\snooze\SleeperHandler->sleepUntil(double 1561596791.1366) [00:53:11] [Server thread/DEBUG]: #21 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor() [00:53:11] [Server thread/DEBUG]: #22 src/pocketmine/Server(1774): pocketmine\Server->start() [00:53:11] [Server thread/DEBUG]: #23 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[00:53:11] [Server thread/INFO]: ChoosyproDev left the game