menu
#9718445 Too few arguments to function NickteeChunky\session\SessionData::getNextBestEffect(), 1 passed in C:\Users\nickt\Desktop\Lurid\Factions\Oblivion\plugins\LuridFactions\src\NickteeChunky\event\entity\EntityEffectRemove.php on line 22 and exactly 2 expected

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Direct
Report date: 2023-12-03 04:04:44 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 52 seconds

System Information

PHP version: 8.2.9
JIT status: Not available
Operating system: win
System banner: Windows NT NICKTEE 10.0 build 22000 (Windows 11) AMD64

Error information

Warning: the LuridFactions plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Too few arguments to function NickteeChunky\session\SessionData::getNextBestEffect(), 1 passed in C:\Users\nickt\Desktop\Lurid\Factions\Oblivion\plugins\LuridFactions\src\NickteeChunky\event\entity\EntityEffectRemove.php on line 22 and exactly 2 expected
File: plugins/LuridFactions/src/NickteeChunky/session/SessionData
Line: #312
Type: ArgumentCountError
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322

public function canFeed(?string $rank = null): bool
{
return match ($rank ?? $this->getRank()) {
Constants::RANK_LURIDER => $this->hasActiveIngot("feed"),
default => true,
};
}

public function getNextBestEffect(Translatable|string $typeName, bool $alreadyRemoved): SavedEffect|false
{
$name = $typeName instanceof Translatable ? $typeName->getText() : $typeName;
if(isset($this->effects[$name])) {
if(!$alreadyRemoved) {
array_shift($this->effects[$name]);
}
return reset($this->effects[$name]);
}
return false;
}
#0 plugins/LuridFactions/src/NickteeChunky/event/entity/EntityEffectRemove(22): NickteeChunky\session\SessionData->getNextBestEffect(object pocketmine\lang\Translatable#93006)
#1 pmsrc/src/event/RegisteredListener(61): NickteeChunky\event\entity\EntityEffectRemove->onEntityEffectRemove(object pocketmine\event\entity\EntityEffectRemoveEvent#98998)
#2 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\entity\EntityEffectRemoveEvent#98998)
#3 pmsrc/src/entity/effect/EffectManager(86): pocketmine\event\Event->call()
#4 plugins/LuridFactions/src/NickteeChunky/session/Session(683): pocketmine\entity\effect\EffectManager->remove(object pocketmine\entity\effect\Effect#93007)
#5 plugins/LuridFactions/src/NickteeChunky/customenchant/defaults/Aquatic(33): NickteeChunky\session\Session->removeEffectById(object pocketmine\entity\effect\Effect#93007, string[8] Aquatic4)
#6 plugins/LuridFactions/src/NickteeChunky/customenchant/CustomEnchant(128): NickteeChunky\customenchant\defaults\Aquatic->undo(object NickteeChunky\session\Session#169838, int 4)
#7 plugins/LuridFactions/src/NickteeChunky/customenchant/defaults/Aquatic(23): NickteeChunky\customenchant\CustomEnchant->trigger(object pocketmine\player\Player#176817, object NickteeChunky\event\player\PlayerCustomEnchantArmorChangeEvent#99999)
#8 pmsrc/src/event/RegisteredListener(61): NickteeChunky\customenchant\defaults\Aquatic->onPlayerCustomEnchantArmorChange(object NickteeChunky\event\player\PlayerCustomEnchantArmorChangeEvent#99999)
#9 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object NickteeChunky\event\player\PlayerCustomEnchantArmorChangeEvent#99999)
#10 plugins/LuridFactions/src/NickteeChunky/session/Session(155): pocketmine\event\Event->call()
#11 pmsrc/src/inventory/CallbackInventoryListener(65): NickteeChunky\session\Session->NickteeChunky\session\{closure}(object pocketmine\inventory\ArmorInventory#169659, int 0, object pocketmine\item\Armor#99011)
#12 pmsrc/src/inventory/BaseInventory(365): pocketmine\inventory\CallbackInventoryListener->onSlotChange(object pocketmine\inventory\ArmorInventory#169659, int 0, object pocketmine\item\Armor#99011)
#13 pmsrc/src/inventory/BaseInventory(74): pocketmine\inventory\BaseInventory->onSlotChange(int 0, object pocketmine\item\Armor#99011)
#14 pmsrc/src/inventory/transaction/action/SlotChangeAction(90): pocketmine\inventory\BaseInventory->setItem(int 0, object pocketmine\item\ItemBlock#99075)
#15 pmsrc/src/inventory/transaction/InventoryTransaction(324): pocketmine\inventory\transaction\action\SlotChangeAction->execute(object pocketmine\player\Player#176817)
#16 pmsrc/src/network/mcpe/handler/InGamePacketHandler(376): pocketmine\inventory\transaction\InventoryTransaction->execute()
#17 pmsrc/src/network/mcpe/handler/InGamePacketHandler(593): pocketmine\network\mcpe\handler\InGamePacketHandler->executeInventoryTransaction(object pocketmine\inventory\transaction\InventoryTransaction#99062, int -153)
#18 pmsrc/src/network/mcpe/handler/InGamePacketHandler(614): pocketmine\network\mcpe\handler\InGamePacketHandler->handleSingleItemStackRequest(object pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequest#99139)
#19 pmsrc/vendor/pocketmine/bedrock-protocol/src/ItemStackRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleItemStackRequest(object pocketmine\network\mcpe\protocol\ItemStackRequestPacket#99129)
#20 pmsrc/src/network/mcpe/NetworkSession(445): pocketmine\network\mcpe\protocol\ItemStackRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#93416)
#21 pmsrc/src/network/mcpe/NetworkSession(383): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ItemStackRequestPacket#99129, string[19] ...................)
#22 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[69] ...........A.....?..L`\.g.....^.....v..u.$g.(..3021<e3....7a.../!K.,.)
#23 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[78] .i./....2..A`V.{$F..{m.....h!T.&.L..Z.?....7j|.j....p...X.n...V..........B....)
#24 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#177430)
#25 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#26 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#27 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#28 pmsrc/src/Server(1683): pocketmine\snooze\SleeperHandler->sleepUntil(float 1701576284.0097)
#29 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#30 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[47] C:\Users\nickt\Desktop\Lurid\Factions\Oblivion\, string[55] C:\Users\nickt\Desktop\Lurid\Factions\Oblivion\plugins\)
#31 pmsrc/src/PocketMine(364): pocketmine\server()
#32 pmsrc(11): require(string[91] phar://C:/Users/nickt/Desktop/Lurid/Factions/Oblivion/PocketMine-MP.phar/src/Poc)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show