menu
#7304264 TheAz928\CubeBox\entity\CrateEntity::getCrate(): Return value must be of type TheAz928\CubeBox\crate\Crate, null returned

Submitted by PocketMine-MP 4.6.1

General information

Version: 4.6.1
Git commit: b20e0453
Plugin involvement: Direct
Report date: 2022-08-05 22:56:15 +0000 UTC
Server uptime: 0 days 0 hours 3 minutes 13 seconds

System Information

PHP version: 8.0.17
Operating system: linux
System banner: Linux 530c7b22-9b99-476f-a278-1491ad977640 5.10.0-0.bpo.9-amd64 #1 SMP Debian 5.10.70-1~bpo10+1 (2021-10-10) x86_64

Error information

Warning: the CubeBox plugin was directly involved in this crash. Please contact the plugin author.
Message: TheAz928\CubeBox\entity\CrateEntity::getCrate(): Return value must be of type TheAz928\CubeBox\crate\Crate, null returned
File: plugins/CubeBox(M).phar/src/TheAz928/CubeBox/entity/CrateEntity
Line: #75
Error level: TypeError
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
    public function isRunning() : bool {
return $this->running;
}

public function setRunning(bool $running) : void {
$this->running = $running;
}

public function getCrate() : Crate {
return $this->crate;
}

/**
*
*/

public function startAnimation(Player $player) {
if ($this->running) {
return true;
}
#0 plugins/CubeBox(M).phar/src/TheAz928/CubeBox/Loader(280): TheAz928\CubeBox\entity\CrateEntity->getCrate()
#1 pmsrc/src/event/RegisteredListener(60): TheAz928\CubeBox\Loader->onEntityDamage(object pocketmine\event\entity\EntityDamageByEntityEvent#258286)
#2 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByEntityEvent#258286)
#3 pmsrc/src/entity/Entity(528): pocketmine\event\Event->call()
#4 pmsrc/src/entity/Living(517): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#258286)
#5 pmsrc/src/player/Player(1741): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#258286)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(510): pocketmine\player\Player->attackEntity(object TheAz928\CubeBox\entity\CrateEntity#276217)
#7 pmsrc/src/network/mcpe/handler/InGamePacketHandler(300): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemOnEntityTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData#270404)
#8 plugins/VanillaX(M).phar/src/CLADevs/VanillaX/network/InGamePacketHandlerX(217): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#305600)
#9 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(105): CLADevs\VanillaX\network\InGamePacketHandlerX->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#305600)
#10 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object CLADevs\VanillaX\network\InGamePacketHandlerX#208002)
#11 pmsrc/src/network/mcpe/NetworkSession(357): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#305600, string[180] ...............\...........crate..legend...display...NameW...e..lLEGENDAIRE key.)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[232] c.abb.b.jm....g..;1..;.(.....\..VbU..X.Z....Q....'##G..........?#....+.PiI*.CNjz)
#13 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[241] ../.....Z.ye......z.u.N..rR..Kr./....h.d.b.r._..F.mW.;.i*.*P....".;[..=0..k..r..)
#14 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#142019)
#15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#17 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1659740175.4266)
#18 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#19 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#20 pmsrc/src/PocketMine(327): pocketmine\server()
#21 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show