menu
#9719012 Undefined constant minijaham\TimerManager\TimerManager::KOSTORNAIA_PEARL

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Direct
Report date: 2023-12-03 06:24:37 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 20 seconds

System Information

PHP version: 8.1.24
JIT status: Not available
Operating system: win
System banner: Windows NT DESKTOP-QL64HUC 10.0 build 19045 (Windows 10) AMD64

Error information

Warning: the KamikazePearls plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined constant minijaham\TimerManager\TimerManager::KOSTORNAIA_PEARL
File: plugins/KamikazePearls/src/clouder/pearls/items/Pearls/KostornaiaPearl
Line: #36
Type: Error
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
    }

public function getMaxStackSize(): int
{
return 16;
}

public function onItemUse(PlayerItemUseEvent $event): void {
$player = $event->getPlayer();
$id = TimerManager::KOSTORNAIA_PEARL;
$item = $event->getItem();
$config = Main::getInstance()->getConfig();
$timer = TimerManager::getInstance();
if ($item->getNamedTag()->getTag("ability")) {
$tag = $item->getNamedTag()->getString("ability");
switch ($tag) {
case "kostornaiapearl":
$event->cancel();
if (($timeLeft = $timer->getTimer($player->getName(), $id)) !== 0) {
$player->sendMessage(TextFormat::colorize('&cYou cannot use another &eKostornaia &cpearl for ' . $timeLeft . ' seconds!'));
#0 pmsrc/src/event/RegisteredListener(61): clouder\pearls\items\Pearls\KostornaiaPearl->onItemUse(object pocketmine\event\player\PlayerItemUseEvent#107907)
#1 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerItemUseEvent#107907)
#2 pmsrc/src/player/Player(1607): pocketmine\event\Event->call()
#3 pmsrc/src/network/mcpe/handler/InGamePacketHandler(509): pocketmine\player\Player->useHeldItem()
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(343): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#107952)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(94): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#107998)
#6 pmsrc/src/network/mcpe/NetworkSession(445): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#83768)
#7 pmsrc/src/network/mcpe/NetworkSession(383): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#107998, string[182] .............................ability..kostornaiapearl...display...Lore.....+...r)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[144] c.ab..(...................?#....;CbRfNfI%?Cv~qI~Q^bfbAjbQ..;CJfqANb%'..O~Q*.H.6.)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[153] ..Z....D..K.......d.....8..K..J._.7....2.!0...x.OmC...ry.$.....}.]n...3q.......5)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#187064)
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#14 pmsrc/src/Server(1683): pocketmine\snooze\SleeperHandler->sleepUntil(float 1701584677.6249)
#15 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#16 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[41] E:\PocketMine-MP LAN Servers\Commissions\, string[49] E:\PocketMine-MP LAN Servers\Commissions\plugins\)
#17 pmsrc/src/PocketMine(364): pocketmine\server()
#18 pmsrc(11): require(string[85] phar://E:/PocketMine-MP LAN Servers/Commissions/PocketMine-MP.phar/src/PocketMin)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show