menu
#10302413 pocketmine\inventory\PlayerInventory::setItemInHand(): Argument #1 ($item) must be of type pocketmine\item\Item, pocketmine\crafting\FurnaceRecipe given, called in C:\Users\Baptiste\Documents\Programmation\FinalServer\plugins\Kitmap\src\Kitmap\Commands\FurnaceCommand.php on line 33

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Indirect
Report date: 2024-02-12 18:20:31 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 17 seconds

System Information

PHP version: 8.1.24
JIT status: Not available
Operating system: win
System banner: Windows NT BAPTISTELBH 10.0 build 22631 (Windows 11) AMD64

Error information

Warning: the Kitmap plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Thread: Main
Message: pocketmine\inventory\PlayerInventory::setItemInHand(): Argument #1 ($item) must be of type pocketmine\item\Item, pocketmine\crafting\FurnaceRecipe given, called in C:\Users\Baptiste\Documents\Programmation\FinalServer\plugins\Kitmap\src\Kitmap\Commands\FurnaceCommand.php on line 33
File: pmsrc/src/inventory/PlayerInventory
Line: #112
Type: TypeError
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
	 * Returns the currently-held item.
*/
public function getItemInHand() : Item{
return $this->getHotbarSlotItem($this->itemInHandIndex);
}

/**
* Sets the item in the currently-held slot to the specified item.
*/
public function setItemInHand(Item $item) : void{
$this->setItem($this->getHeldItemIndex(), $item);
}

/**
* Returns the number of slots in the hotbar.
*/
public function getHotbarSize() : int{
return 9;
}

#0 plugins/Kitmap/src/Kitmap/Commands/FurnaceCommand(33): pocketmine\inventory\PlayerInventory->setItemInHand(object pocketmine\crafting\FurnaceRecipe#47620)
#1 pmsrc/src/command/SimpleCommandMap(212): Kitmap\Commands\FurnaceCommand->execute(object pocketmine\player\Player#160163, string[7] furnace, array[0])
#2 pmsrc/src/Server(1434): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#160163, string[7] furnace)
#3 pmsrc/src/player/Player(1512): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#160163, string[7] furnace)
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(821): pocketmine\player\Player->chat(string[8] /furnace)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#146196)
#6 pmsrc/src/network/mcpe/NetworkSession(462): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#72535)
#7 pmsrc/src/network/mcpe/NetworkSession(400): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#146196, string[30] M./furnace.-Em.....9zNv.6b...J)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[77] .....O+-.KLNe.u...!.Z......Y.^../......9Nx.u._..CE..N-.x....$........MX......)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[86] ..&..FN.......$.u..D..G..gS.....;A..!.Q..(d...Eyr.{....4Y5A........~L...N.EC.Hv.)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#194923)
#11 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#13 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#15 pmsrc/src/Server(1699): pocketmine\snooze\SleeperHandler->sleepUntil(float 1707762031.6354)
#16 pmsrc/src/Server(1067): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[54] C:\Users\Baptiste\Documents\Programmation\FinalServer\, string[62] C:\Users\Baptiste\Documents\Programmation\FinalServer\plugins\)
#18 pmsrc/src/PocketMine(364): pocketmine\server()
#19 pmsrc(11): require(string[98] phar://C:/Users/Baptiste/Documents/Programmation/FinalServer/PocketMine-MP.phar/)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show