menu
#10302255 Call to undefined method partneritems\type\utils\LogicItem::STRENGTH()

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 17:46:49 +0000 UTC
Server uptime: 0 days 0 hours 2 minutes 41 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux 94f34b19-a4a2-43f6-8bf9-58d55769241c 5.4.0-170-generic #188-Ubuntu SMP Wed Jan 10 09:51:01 UTC 2024 x86_64

Error information

Warning: the Funky-abilitys plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to undefined method partneritems\type\utils\LogicItem::STRENGTH()
File: plugins/Funky-abilitys/src/partneritems/entity/PartnerItemsEntity
Line: #116
Type: Error
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
        }

if ($damager->getInventory()->getItemInHand()->getTypeId() === ItemTypeIds::APPLE) {
if ($damager->hasPermission('ability.command')) {
$this->kill();
}
return;
}

$strength = LogicItem::STRENGTH();
$menu = InvMenu::create(InvMenuTypeIds::TYPE_CHEST);
$menu->setName("§r§7Partner Items");
$menu->getInventory()->setContents($strength);


$menu->setListener(function (InvMenuTransaction $transaction): InvMenuTransactionResult {
return $transaction->discard();
});
$menu->send($damager);
}
#0 pmsrc/src/player/Player(1869): partneritems\entity\PartnerItemsEntity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#85680)
#1 pmsrc/src/network/mcpe/handler/InGamePacketHandler(557): pocketmine\player\Player->attackEntity(object partneritems\entity\PartnerItemsEntity#148439)
#2 pmsrc/src/network/mcpe/handler/InGamePacketHandler(344): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemOnEntityTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData#85309)
#3 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(94): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#134414)
#4 pmsrc/src/network/mcpe/NetworkSession(462): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#191766)
#5 pmsrc/src/network/mcpe/NetworkSession(400): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#134414, string[32] .........O..r=.B ..C............)
#6 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[67] .c.abb.b.9.f.FF....L..l.....:3 .... .X...6% .....&&... .........V..)
#7 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[76] ...>.)u........E.4...}.F.q~8q......S`..=.{l..7[\R.[...Y.~..............Y..e~)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#203412)
#9 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#11 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#13 pmsrc/src/Server(1699): pocketmine\snooze\SleeperHandler->sleepUntil(float 1707760009.9411)
#14 pmsrc/src/Server(1067): pocketmine\Server->tickProcessor()
#15 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/)
#16 pmsrc/src/PocketMine(364): pocketmine\server()
#17 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