menu
#10302396 Non-static method pocketmine\block\Furnace::getFurnaceType() cannot be called statically

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 18:16:29 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 18 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 directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Non-static method pocketmine\block\Furnace::getFurnaceType() cannot be called statically
File: plugins/Kitmap/src/Kitmap/Commands/FurnaceCommand
Line: #32
Type: Error
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
		$this->setPermission(DefaultPermissionNames::BROADCAST_USER);
}

public function execute(CommandSender $sender, string $commandLabel, array $args): void{

if(!$sender instanceof Player){ return; }

$item = $sender->getInventory()->getItemInHand();

$smelt = Server::getInstance()->getCraftingManager()->getFurnaceRecipeManager(Furnace::getFurnaceType())->match($item);




}

}

?>
#0 pmsrc/src/command/SimpleCommandMap(212): Kitmap\Commands\FurnaceCommand->execute(object pocketmine\player\Player#160321, string[7] furnace, array[0])
#1 pmsrc/src/Server(1434): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#160321, string[7] furnace)
#2 pmsrc/src/player/Player(1512): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#160321, string[7] furnace)
#3 pmsrc/src/network/mcpe/handler/InGamePacketHandler(821): pocketmine\player\Player->chat(string[8] /furnace)
#4 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#156570)
#5 pmsrc/src/network/mcpe/NetworkSession(462): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#77815)
#6 pmsrc/src/network/mcpe/NetworkSession(400): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#156570, string[30] M./furnace..N.3.2.F.....Yk...J)
#7 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[77] .....O+-.KLNe....x..|.._..........z.#..#vL{...K.~.....e..#.........A.....2 ..)
#8 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[86] .Ade.....`.'C...&.......*.B.\.g=....W.e.<(.............x.n.%.F..8..}.......Z...q)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#161379)
#10 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#12 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#14 pmsrc/src/Server(1699): pocketmine\snooze\SleeperHandler->sleepUntil(float 1707761789.1518)
#15 pmsrc/src/Server(1067): pocketmine\Server->tickProcessor()
#16 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\)
#17 pmsrc/src/PocketMine(364): pocketmine\server()
#18 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