menu
#7305739 Call to a member function getName() on null

Submitted by PocketMine-MP 4.6.0

General information

Version: 4.6.0
Git commit: 3ccd288a
Plugin involvement: Direct
Report date: 2022-08-06 05:14:43 +0000 UTC
Server uptime: 0 days 0 hours 46 minutes 49 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux SH 5.4.0-121-generic #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2022 x86_64

Error information

Warning: the MiniBosses plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getName() on null
File: plugins/MiniBosses_dev-26.phar/src/diamondgold/MiniBosses/Main
Line: #398
Error level: Error
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
            }
if (isset($data["commands"]) && is_array($data["commands"])) {
$commands = $data["commands"];
}
}
foreach ($commands as $command) {
if (str_contains($command, "{PLAYER}") && $p === null) {
continue;
}
$command = str_replace(["{PLAYER}", "{BOSS}"], [$p->getName(), $name], $command);
if (str_starts_with($command, "CONSOLE ")) {
$command = substr($command, strlen("CONSOLE "));
$sender = new ConsoleCommandSender($this->getServer(), $this->getServer()->getLanguage());
} elseif ($p instanceof Player) {
$sender = $p;
$op = $p->hasPermission(DefaultPermissions::ROOT_OPERATOR);
$runAsOp = str_starts_with($command, "OP ");
if ($runAsOp) {
$command = substr($command, strlen("OP "));
$p->setBasePermission(DefaultPermissions::ROOT_OPERATOR, true);
#0 plugins/MiniBosses_dev-26.phar/src/diamondgold/MiniBosses/Boss(703): diamondgold\MiniBosses\Main->executeCommands(object diamondgold\MiniBosses\Boss#1018427, null)
#1 pmsrc/src/entity/Entity(585): diamondgold\MiniBosses\Boss->kill()
#2 pmsrc/src/entity/Living(188): pocketmine\entity\Entity->setHealth(float -0.79652941223539)
#3 pmsrc/src/entity/Entity(532): pocketmine\entity\Living->setHealth(float -0.79652941223539)
#4 pmsrc/src/entity/Living(517): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageEvent#1010219)
#5 plugins/MiniBosses_dev-26.phar/src/diamondgold/MiniBosses/Boss(674): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageEvent#1010219)
#6 pmsrc/src/entity/Entity(724): diamondgold\MiniBosses\Boss->attack(object pocketmine\event\entity\EntityDamageEvent#1010219)
#7 pmsrc/src/entity/Entity(707): pocketmine\entity\Entity->dealFireDamage()
#8 pmsrc/src/entity/Entity(647): pocketmine\entity\Entity->doOnFireTick(int 1)
#9 pmsrc/src/entity/Living(609): pocketmine\entity\Entity->entityBaseTick(int 1)
#10 pmsrc/src/entity/Entity(982): pocketmine\entity\Living->entityBaseTick(int 1)
#11 plugins/MiniBosses_dev-26.phar/src/diamondgold/MiniBosses/Boss(631): pocketmine\entity\Entity->onUpdate(int 56093)
#12 pmsrc/src/world/World(842): diamondgold\MiniBosses\Boss->onUpdate(int 56093)
#13 pmsrc/src/world/World(768): pocketmine\world\World->actuallyDoTick(int 56093)
#14 pmsrc/src/world/WorldManager(348): pocketmine\world\World->doTick(int 56093)
#15 pmsrc/src/Server(1818): pocketmine\world\WorldManager->tick(int 56093)
#16 pmsrc/src/Server(1700): pocketmine\Server->tick()
#17 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#18 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[19] /root/servers/new2/, string[27] /root/servers/new2/plugins/)
#19 pmsrc/src/PocketMine(327): pocketmine\server()
#20 pmsrc(11): require(string[63] phar:///root/servers/new2/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show