menu
#3761902 Return value of JaxkDev\Vehicles\Vehicle\BasicCar::getDesign() must be an instance of pocketmine\network\mcpe\protocol\types\SkinData, null returned

Submitted by PocketMine-MP 3.11.3

General information

Version: 3.11.3
Git commit: 0d5704b1
Plugin involvement: Direct
Report date: 2020-02-13 14:07:21 +0000 UTC

System Information

PHP version: 7.3.11
Operating system: linux
System banner: Linux 867ed7721357 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64

Error information

Warning: the Vehicles plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of JaxkDev\Vehicles\Vehicle\BasicCar::getDesign() must be an instance of pocketmine\network\mcpe\protocol\types\SkinData, null returned
File: plugins/Vehicles.phar/src/JaxkDev/Vehicles/Vehicle/BasicCar
Line: #52
Error level: TypeError
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
		parent::recalculateBoundingBox();
}

static function getName(): string{
return "Basic-Car";
}

static function getDesign(): SkinData
{
return Main::getInstance()->designFactory->getDesign(self::getName());
}

protected function sendSpawnPacket(Player $player) : void{
parent::sendInitPacket($player, $this);
}

/**
* Handle player input.
* @param float $x
* @param float $y
#0 plugins/Vehicles.phar/src/JaxkDev/Vehicles/Vehicle/Vehicle(342): JaxkDev\Vehicles\Vehicle\BasicCar::getDesign()
#1 plugins/Vehicles.phar/src/JaxkDev/Vehicles/Vehicle/BasicCar(56): JaxkDev\Vehicles\Vehicle\Vehicle->sendInitPacket(object pocketmine\Player, object JaxkDev\Vehicles\Vehicle\BasicCar)
#2 src/pocketmine/entity/Entity(2054): JaxkDev\Vehicles\Vehicle\BasicCar->sendSpawnPacket(object pocketmine\Player)
#3 src/pocketmine/Player(1025): pocketmine\entity\Entity->spawnTo(object pocketmine\Player)
#4 src/pocketmine/level/Level(2644): pocketmine\Player->sendChunk(integer 11, integer 20, object pocketmine\network\mcpe\protocol\BatchPacket)
#5 src/pocketmine/level/Level(2696): pocketmine\level\Level->sendChunkFromCache(integer 11, integer 20)
#6 src/pocketmine/level/format/io/ChunkRequestTask(76): pocketmine\level\Level->chunkRequestCallback(integer 11, integer 20, object pocketmine\network\mcpe\protocol\BatchPacket)
#7 src/pocketmine/scheduler/AsyncPool(321): pocketmine\level\format\io\ChunkRequestTask->onCompletion(object pocketmine\Server)
#8 src/pocketmine/Server(2574): pocketmine\scheduler\AsyncPool->collectTasks()
#9 src/pocketmine/Server(2346): pocketmine\Server->tick()
#10 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#11 src/pocketmine/Server(1785): pocketmine\Server->start()
#12 src/pocketmine/PocketMine(268): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[11] /root/pmmp/, string[19] /root/pmmp/plugins/)
#13 src/pocketmine/PocketMine(291): pocketmine\server()
#14 (1): require(string[66] phar:///root/pmmp/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show