menu
#10302433 Call to undefined method pocketmine\item\ItemBlock::getId()

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:25:31 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 22 seconds

System Information

PHP version: 8.1.26
JIT status: Not available
Operating system: linux
System banner: Linux a80e14cd-ef29-42c8-b9e2-c81c3ea4fb9e 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64

Error information

Warning: the FedCore plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to undefined method pocketmine\item\ItemBlock::getId()
File: plugins/FedCore/src/FreakCore/command/commands/premium/RepairCommand
Line: #56
Type: Error
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
                            $sender->getArmorInventory()->setItem($slot, $item);
}
}

$sender->sendMessage(ChatUtil::fixColors("&r&b» &7Wszystkie itemy zostaly &anaprawione&7!"));
return;
}
} else {
$item = $sender->getInventory()->getItemInHand();
if($item->getId() == 0) return;

if ($item instanceof Pickaxe or
$item instanceof Armor or
$item instanceof Sword or
$item instanceof Tool or
$item instanceof FishingRod) {
if ($item->getMaxDurability() > 0) {
$item->setDamage(0);
$sender->getInventory()->setItemInHand($item);
$sender->sendMessage(ChatUtil::fixColors("&r&b» &7Item w twojej rece zostal &anaprawiony&7!"));
#0 plugins/FedCore/src/FreakCore/command/BaseCommand(52): FreakCore\command\commands\premium\RepairCommand->onCommand(object pocketmine\player\Player#179653, array[0])
#1 pmsrc/src/command/SimpleCommandMap(212): FreakCore\command\BaseCommand->execute(object pocketmine\player\Player#179653, string[6] repair, array[0])
#2 pmsrc/src/Server(1434): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#179653, string[6] repair)
#3 pmsrc/src/player/Player(1512): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#179653, string[6] repair)
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(821): pocketmine\player\Player->chat(string[7] /repair)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#92200)
#6 pmsrc/src/network/mcpe/NetworkSession(462): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#100493)
#7 pmsrc/src/network/mcpe/NetworkSession(400): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#92200, string[29] M./repair..B,Z..........A...J)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[79] ...e./J-H.,bhw..Z.......z..;.20x.L`.a....^......E.K.bt.....$....p......`/.j....)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[88] [email protected]>l.|b..Y../@..Wf..<.|E.b......jM..SV!..s....V.....S.)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#180451)
#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 1707762331.4784)
#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[16] /home/container/, string[24] /home/container/plugins/)
#18 pmsrc/src/PocketMine(364): pocketmine\server()
#19 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show