menu
#9249351 Call to undefined method Doki\Item\AntiPearl::getConfig()

Submitted by PocketMine-MP 5.5.0

General information

Version: 5.5.0
Git commit: c8d357f4
Plugin involvement: Direct
Report date: 2023-09-19 16:03:37 +0000 UTC
Server uptime: 0 days 0 hours 14 minutes 51 seconds

System Information

PHP version: 8.1.23
JIT status: Not available
Operating system: linux
System banner: Linux cfed3a91-9b9c-47d1-8863-23365bfb5a45 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64

Error information

Warning: the EnarCorePM5 plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to undefined method Doki\Item\AntiPearl::getConfig()
File: plugins/EnarCorePM5/src/Doki/Item/AntiPearl
Line: #41
Type: Error
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

public function damage(EntityDamageByEntityEvent $event)
{

$victim = $event->getEntity();
$damager = $event->getDamager();

if ($victim instanceof Player and $damager instanceof Player) {

if ($damager->getInventory()->getItemInHand()->getTypeId() === StringToItemParser::getInstance()->parse($this->getConfig()->get("item"))->getTypeId()) {
if (!isset($this->cooldown_use[$victim->getName()]) || $this->cooldown_use[$victim->getName()] - time() <= 0) {
$this->cooldown_use[$victim->getName()] = time() + $this->getConfig()->get("cooldown");

if (!isset($this->cooldown_antiperle[$victim->getName()]) || $this->cooldown_antiperle[$victim->getName()] - time() <= 0) {
$this->cooldown_antiperle[$victim->getName()] = time() + $this->getConfig()->get("time");
$victim->sendMessage(str_replace("{time}", $this->getConfig()->get("time"), $this->getConfig()->get("usenotif")));
} else $damager->sendMessage("§cCe joueur est deja sous antiperle");
} else {
$time = $this->cooldown_antiperle[$damager->getName()] - time();
$damager->sendPopup(str_replace("{time}", $time, $this->getConfig()->get("stickcooldown")));
#0 pmsrc/src/event/RegisteredListener(61): Doki\Item\AntiPearl->damage(object pocketmine\event\entity\EntityDamageByEntityEvent#121280)
#1 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByEntityEvent#121280)
#2 pmsrc/src/entity/Entity(530): pocketmine\event\Event->call()
#3 pmsrc/src/entity/Living(548): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#121280)
#4 pmsrc/src/player/Player(2466): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#121280)
#5 pmsrc/src/player/Player(1869): pocketmine\player\Player->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#121280)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(558): pocketmine\player\Player->attackEntity(object pocketmine\player\Player#109963)
#7 pmsrc/src/network/mcpe/handler/InGamePacketHandler(345): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemOnEntityTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData#149676)
#8 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(94): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#137918)
#9 pmsrc/src/network/mcpe/NetworkSession(445): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#128730)
#10 pmsrc/src/network/mcpe/NetworkSession(383): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#137918, string[49] [email protected]=.B ..C............)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[40] c.a.g.bC9.f.iF..V.. .b......E....6oqf@..)
#12 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[49] ......7.u...U.m.T...&..V.~...!...g....A...K..[..8)
#13 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#186899)
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#15 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#17 pmsrc/src/Server(1681): pocketmine\snooze\SleeperHandler->sleepUntil(float 1695139416.9994)
#18 pmsrc/src/Server(1064): pocketmine\Server->tickProcessor()
#19 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#20 pmsrc/src/PocketMine(357): pocketmine\server()
#21 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