menu
#6720126 Call to a member function getObjective() on null

Submitted by PocketMine-MP 4.3.2

General information

Version: 4.3.2
Git commit: 755ca1af
Plugin involvement: Direct
Report date: 2022-05-14 09:59:59 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 39 seconds

System Information

PHP version: 8.0.17
Operating system: linux
System banner: Linux 95f15004-8fa4-4c31-bca8-b7c7b38a84cf 4.19.0-20-cloud-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64

Error information

Warning: the Quests plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getObjective() on null
File: plugins/quest_edit_table_enchant.phar/src/steellgold/quests/forms/QuestsForms
Line: #31
Error level: Error
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
		];

$options = [];
$fail = 0;
foreach (Quests::getInstance()->players[$player->getName()]["quests"] as $questID => $questData) {
if (Quests::getInstance()->players[$player->getName()]["quests"][$questID]["phase"] == "progress") {
$quest = Quest::getFromID($questID);

$sub = "";
if($quest->getObjective()->getAmount() == Quests::getInstance()->players[$player->getName()]["quests"][$questID]["progress"]){
$sub = Quests::getInstance()->getConfig()->get("forms")["menu"]["reward"];
}

if ($quest->time !== null) {
$endTime = Quests::calculTime(Quests::getInstance()->players[$player->getName()]["quests"][$questID]["end_time"] - time());

if($quest->getObjective()->getAmount() !== Quests::getInstance()->players[$player->getName()]["quests"][$questID]["progress"]){
if(time() > Quests::getInstance()->players[$player->getName()]["quests"][$questID]["end_time"]){
$sub = Quests::getInstance()->getConfig()->get("forms")["menu"]["timeout"];
}else{
#0 plugins/quest_edit_table_enchant.phar/src/steellgold/quests/commands/QuestsCommand(14): steellgold\quests\forms\QuestsForms::getHomeForm(object pocketmine\player\Player#95915)
#1 pmsrc/src/command/SimpleCommandMap(220): steellgold\quests\commands\QuestsCommand->execute(object pocketmine\player\Player#95915, string[6] quests, array[0])
#2 pmsrc/src/Server(1409): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#95915, string[6] quests)
#3 pmsrc/src/player/Player(1402): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#95915, string[6] quests)
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(754): pocketmine\player\Player->chat(string[7] /quests)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#118840)
#6 pmsrc/src/network/mcpe/NetworkSession(398): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#119990)
#7 pmsrc/src/network/mcpe/NetworkSession(361): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#118840, string[28] M./quests..D......M..1~D....)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[32] ..e./,M-.)f...~......sY..\6.``..)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 1, string[41] ..gH...z.ny...HP..b.i........./+..:.h....)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#27902)
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#13 pmsrc/src/Server(1661): pocketmine\snooze\SleeperHandler->sleepUntil(double 1652522399.0951)
#14 pmsrc/src/Server(1047): pocketmine\Server->tickProcessor()
#15 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#16 pmsrc/src/PocketMine(327): pocketmine\server()
#17 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show