menu
#10626024 Cannot use isset() on the result of an expression (you can use "null !== expression" instead)

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:05:38 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 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: Cannot use isset() on the result of an expression (you can use "null !== expression" instead)
File: plugins/Hardcore Factions/src/HCF/listeners/Death
Line: #113
Type: E_COMPILE_ERROR
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123

$playe = $event->getPlayer()->getName();
if (!isset(self::lasthit[$playe])) {
$event->setDeathMessage(TE::RED.$player->getName().TE::YELLOW." has fallen from a high place");
}
}
}
$last = $player->getLastHit();
$dmg = Main::getMain()->getServer()->getPlayerByPrefix($last['target']);
if(isset($player->getLastHit())){

$dmg->addKills();
if(Factions::getFaction($dmg->getName())){
$factionName = Factions::getFaction($dmg->getName());
Factions::addPoints($factionName, 1);
KillLogger::getInstance()->registerKill($dmg, $player);
}
if (Factions::getFaction($player->getName()) && Factions::getStrength(Factions::getFaction($player->getName())) === 0){
$xd = 25;
if(X2Crystals::isEnable()) {

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show