menu
#7034128 muqsit\invmenu\InvMenu::handleInventoryTransaction(): Return value must be of type muqsit\invmenu\transaction\InvMenuTransactionResult, null returned

Submitted by PocketMine-MP 4.5.1

General information

Version: 4.5.1
Git commit: d641812c
Plugin involvement: Direct
Report date: 2022-06-23 10:09:54 +0000 UTC
Server uptime: 0 days 0 hours 3 minutes 45 seconds

System Information

PHP version: 8.0.18
Operating system: win
System banner: Windows NT WIN-M4T4MLVLNJ6 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: muqsit\invmenu\InvMenu::handleInventoryTransaction(): Return value must be of type muqsit\invmenu\transaction\InvMenuTransactionResult, null returned
File: C:/Users/minecraft/Desktop/PocketMine-MP/virions/InvMenu-4.0/src/muqsit/invmenu/InvMenu
Line: #166
Error level: TypeError
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
	 * @param Player $player
* @return bool
*/
public function sendInventory(Player $player) : bool{
return $player->setCurrentWindow($this->getInventory());
}

public function handleInventoryTransaction(Player $player, Item $out, Item $in, SlotChangeAction $action, InventoryTransaction $transaction) : InvMenuTransactionResult{
$inv_menu_txn = new SimpleInvMenuTransaction($player, $out, $in, $action, $transaction);
return $this->listener !== null ? ($this->listener)($inv_menu_txn) : $inv_menu_txn->continue();
}

public function onClose(Player $player) : void{
if($this->inventory_close_listener !== null){
($this->inventory_close_listener)($player, $this->getInventory());
}

InvMenuHandler::getPlayerManager()->get($player)->removeCurrentMenu();
}
}
#0 C:/Users/minecraft/Desktop/PocketMine-MP/virions/InvMenu-4.0/src/muqsit/invmenu/InvMenuEventHandler(105): muqsit\invmenu\InvMenu->handleInventoryTransaction(object pocketmine\player\Player#37200, object pocketmine\item\ItemBlock#106940, object pocketmine\item\ItemBlock#37604, object pocketmine\inventory\transaction\action\SlotChangeAction#136862, object pocketmine\inventory\transaction\InventoryTransaction#130635)
#1 pmsrc/src/event/RegisteredListener(60): muqsit\invmenu\InvMenuEventHandler->onInventoryTransaction(object pocketmine\event\inventory\InventoryTransactionEvent#136542)
#2 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\inventory\InventoryTransactionEvent#136542)
#3 pmsrc/src/inventory/transaction/InventoryTransaction(294): pocketmine\event\Event->call()
#4 pmsrc/src/inventory/transaction/InventoryTransaction(312): pocketmine\inventory\transaction\InventoryTransaction->callExecuteEvent()
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(398): pocketmine\inventory\transaction\InventoryTransaction->execute()
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(293): pocketmine\network\mcpe\handler\InGamePacketHandler->handleNormalTransaction(object pocketmine\network\mcpe\protocol\types\inventory\NormalTransactionData#136822)
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(105): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#130579)
#8 pmsrc/src/network/mcpe/NetworkSession(388): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#129213)
#9 pmsrc/src/network/mcpe/NetworkSession(351): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#130579, string[92] .......F.....6 .........___Meta___..................F.....6 .........___Meta___.)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[82] ..c``b`cpcd``.3S.........!>>.7.$.H.2..1...O`<....!D....#.N|...d......744p011=.E.)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[91] .E..D.....Nm..akM.)..0f....d.t.Ud`&XM.....O.i..T.m.tH*....Q....-......>.99.V[Yaw)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#35706)
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#15 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1655978994.5521)
#16 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[41] C:\Users\minecraft\Desktop\PocketMine-MP\, string[49] C:\Users\minecraft\Desktop\PocketMine-MP\plugins\)
#18 pmsrc/src/PocketMine(327): pocketmine\server()
#19 pmsrc(11): require(string[85] phar://C:/Users/minecraft/Desktop/PocketMine-MP/PocketMine-MP.phar/src/PocketMin)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show