menu
#4774843 Call to a member function loadChunk() on null

Submitted by PocketMine-MP 3.17.5

General information

Version: 3.17.5
Git commit: 3a0c8dd5
Plugin involvement: Direct
Report date: 2021-02-23 00:59:26 +0000 UTC
Server uptime: 0 days 0 hours 13 minutes 2 seconds

System Information

PHP version: 7.3.21
Operating system: linux
System banner: Linux eff20409-1b61-4feb-82e9-0b6267dc2ad9 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64

Error information

Warning: the ArtisanCore plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function loadChunk() on null
File: plugins/ArtisanCore_25_2-2-1-1(1)(1)(3)(2)(4)(1)(1).phar/src/core/combat/boss/tasks/SpawnWitcherBoss
Line: #73
Error level: Error
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
        return false;
}

public function summon(): void
{
$position = Elemental::getInstance()->bossData->get("arena");
$class = Elemental::getInstance()->getCombatManager()->getBossNameByIdentifier(3);
$lvl = Server::getInstance()->getLevelByName($position["level"]);
$pos = new Vector3($position["x"], $position["y"], $position["z"]);
$lvl->loadChunk($pos->x >> 4, $pos->z >> 4, true);
$nbt = Entity::createBaseNBT($pos);
/** @var Boss $entity */
$entity = new $class($lvl, $nbt);
$entity->spawnToAll();
Server::getInstance()->broadcastMessage("§l§8(§3!§8)§r §7The §l§5Hydro§r §7boss has been spawned in the boss arena. The player that deals the MOST damage gets 4 rewards! Everyone else gets 1 reward! To teleport to the boss arena, type /boss.§r");
}
}
#0 plugins/ArtisanCore_25_2-2-1-1(1)(1)(3)(2)(4)(1)(1).phar/src/core/combat/boss/tasks/SpawnWitcherBoss(44): core\combat\boss\tasks\SpawnWitcherBoss->summon()
#1 pmsrc/src/pocketmine/scheduler/TaskHandler(137): core\combat\boss\tasks\SpawnWitcherBoss->onRun(integer 15601)
#2 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 15601)
#3 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 15601)
#4 pmsrc/src/pocketmine/Server(2390): pocketmine\plugin\PluginManager->tickSchedulers(integer 15601)
#5 pmsrc/src/pocketmine/Server(2153): pocketmine\Server->tick()
#6 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#7 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#8 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#10 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show