menu
#10626113 Undefined constant HCF\listeners\Death::lasthit

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Direct
Report date: 2024-04-03 06:08:40 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 24 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux 2caed37f-2082-400a-8ede-1b21c4e72237 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64

Error information

Warning: the HCF plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined constant HCF\listeners\Death::lasthit
File: plugins/Hardcore Factions/src/HCF/listeners/Death
Line: #97
Type: Error
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
					$event->setDeathMessage(TE::RED.$player->getName().TE:: DARK_RED."[".TE::DARK_RED.$player->getKills().TE::DARK_RED."]".TE::YELLOW." was slain by ".TE::RESET.TE::RED.$damager->getName().TE::DARK_RED."[".TE::DARK_RED.$damager->getKills().TE::DARK_RED."]".TE::YELLOW." using ".TE::RESET.$damager->getInventory()->getItemInHand()->getName());
$damager->getEffects()->add(new EffectInstance(VanillaEffects::ABSORPTION(), 20 * 8, 4));
}
}else{
if($player->getLastDamageCause() === null) return;
switch($player->getLastDamageCause()->getCause()){
case EntityDamageEvent::CAUSE_FALL:
$playe = $event->getPlayer()->getName();
$event->setDeathMessage(TE::RED.$player->getName().TE::YELLOW." has fallen from a high place");
if (isset(self::lasthit[$playe])) {
if (time() - self::lasthit[$playe]["time"] < 30) {
$damager = Server::getInstance()->getPlayerByPrefix(PartnerItems::getInstance()->lasthit[$playe]["player"]);
if($damager instanceof Player){
$damager->addKills();
if(Factions::getFaction($damager->getName())){
$factionName = Factions::getFaction($damager->getName());
Factions::addPoints($factionName, 1);
KillLogger::getInstance()->registerKill($damager, $player);
}
if (Factions::getFaction($player->getName()) && Factions::getStrength(Factions::getFaction($player->getName())) === 0){
#0 pmsrc/src/event/RegisteredListener(61): HCF\listeners\Death->onPlayerDeathEvent(object pocketmine\event\player\PlayerDeathEvent#156679)
#1 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerDeathEvent#156679)
#2 pmsrc/src/player/Player(2354): pocketmine\event\Event->call()
#3 pmsrc/src/entity/Entity(560): pocketmine\player\Player->onDeath()
#4 pmsrc/src/entity/Entity(598): pocketmine\entity\Entity->kill()
#5 pmsrc/src/entity/Living(205): pocketmine\entity\Entity->setHealth(float -223)
#6 pmsrc/src/entity/Entity(545): pocketmine\entity\Living->setHealth(float -223)
#7 pmsrc/src/entity/Living(552): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageEvent#156685)
#8 pmsrc/src/player/Player(2470): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageEvent#156685)
#9 pmsrc/src/entity/Living(375): pocketmine\player\Player->attack(object pocketmine\event\entity\EntityDamageEvent#156685)
#10 pmsrc/src/entity/Entity(1086): pocketmine\entity\Living->onHitGround()
#11 pmsrc/src/entity/Entity(1239): pocketmine\entity\Entity->updateFallState(float -2.4549, true)
#12 pmsrc/src/player/Player(1314): pocketmine\entity\Entity->move(float -0.25040000000001, float -2.4549, float 0.11669999999998)
#13 pmsrc/src/player/Player(1272): pocketmine\player\Player->actuallyHandleMovement(object pocketmine\math\Vector3#76105)
#14 pmsrc/src/network/mcpe/handler/InGamePacketHandler(244): pocketmine\player\Player->handleMovement(object pocketmine\math\Vector3#76105)
#15 pmsrc/vendor/pocketmine/bedrock-protocol/src/PlayerAuthInputPacket(296): pocketmine\network\mcpe\handler\InGamePacketHandler->handlePlayerAuthInput(object pocketmine\network\mcpe\protocol\PlayerAuthInputPacket#156936)
#16 pmsrc/src/network/mcpe/NetworkSession(456): pocketmine\network\mcpe\protocol\PlayerAuthInputPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#199821)
#17 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\PlayerAuthInputPacket#156936, string[61] .....B$.uB.x.Cr=.BA).C.......?$.uB.......cNi.....ei.=........)
#18 pmsrc/src/network/mcpe/raklib/RakLibInterface(214): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[55] ....x..f'.#.N.+.8...tr........ ...F&....~...&,...y.....)
#19 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[64] ......l...`eIa..qC.............7. ....NqQ.1.8._..k.\c..~.+/.n.S.)
#20 pmsrc/src/network/mcpe/raklib/RakLibInterface(107): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#193400)
#21 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#22 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#23 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#24 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#25 pmsrc/src/Server(1696): pocketmine\snooze\SleeperHandler->sleepUntil(float 1712124520.9799)
#26 pmsrc/src/Server(1066): pocketmine\Server->tickProcessor()
#27 pmsrc/src/PocketMine(350): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#28 pmsrc/src/PocketMine(373): pocketmine\server()
#29 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