menu
#4656488 Call to a member function getQuestLevel() on null

Submitted by PocketMine-MP 3.16.0

General information

Version: 3.16.0
Git commit: d2f68836
Plugin involvement: Direct
Report date: 2020-11-21 16:47:13 +0000 UTC

System Information

PHP version: 7.3.23
Operating system: linux
System banner: Linux fdefc538-09c9-4483-9fc3-4aff9929d839 4.4.0-190-generic #220-Ubuntu SMP Fri Aug 28 23:02:15 UTC 2020 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 getQuestLevel() on null
File: plugins/Quests (32).phar/src/KingOfTurkey38/Quests/QuestUtils
Line: #49
Error level: Error
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
    public function __construct(Main $plugin)
{
self::$plugin = $plugin;
}

public static function handleVote(PlayerVoteEvent $event)
{
$player = $event->getPlayer();
$session = self::$plugin->getSession($player);
$quest = self::$plugin->getQuest($session->getQuestLevel());
$identifier = QuestParser::$classes[PlayerVoteEvent::class];
if(isset($quest->getQuests()[$identifier])){
if($session->data[$identifier] === "done"){
return;
}
$amount = $quest->getQuests()[$identifier]["amount"];
if($amount > $session->data[$identifier]){
$session->data[$identifier]++;
}

#0 plugins/Quests (32).phar/src/KingOfTurkey38/Quests/EventListener(107): KingOfTurkey38\Quests\QuestUtils::handleVote(object twisted\bettervoting\events\PlayerVoteEvent)
#1 src/pocketmine/plugin/MethodEventExecutor(42): KingOfTurkey38\Quests\EventListener->onVote(object twisted\bettervoting\events\PlayerVoteEvent)
#2 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object KingOfTurkey38\Quests\EventListener, object twisted\bettervoting\events\PlayerVoteEvent)
#3 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object twisted\bettervoting\events\PlayerVoteEvent)
#4 plugins/BetterVoting_v2.0.0 (16).phar/src/twisted/bettervoting/thread/BetterVotingThread(306): pocketmine\event\Event->call()
#5 plugins/BetterVoting_v2.0.0 (16).phar/src/twisted/bettervoting/BetterVoting(87): twisted\bettervoting\thread\BetterVotingThread->collectActionResults(object pocketmine\Server)
#6 src/pocketmine/scheduler/ClosureTask(61): twisted\bettervoting\BetterVoting::twisted\bettervoting\{closure}(integer 111642)
#7 src/pocketmine/scheduler/TaskHandler(137): pocketmine\scheduler\ClosureTask->onRun(integer 111642)
#8 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 111642)
#9 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 111642)
#10 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 111642)
#11 src/pocketmine/Server(2154): pocketmine\Server->tick()
#12 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#13 src/pocketmine/Server(1588): pocketmine\Server->start()
#14 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#15 src/pocketmine/PocketMine(304): pocketmine\server()
#16 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show