menu
#3550763 Return value of PrimeGames\CorePlayer::getSettingsManager() must be an instance of PrimeGames\player\settings\SettingsManager, null returned

Submitted by PocketMine-MP 3.11.3

General information

Version: 3.11.3
Git commit: 0d5704b1
Plugin involvement: Direct
Report date: 2020-01-14 07:33:50 +0000 UTC

System Information

PHP version: 7.3.3
Operating system: mac
System banner: Darwin Jacks-MBP 18.7.0 Darwin Kernel Version 18.7.0: Sun Dec 1 18:59:03 PST 2019; root:xnu-4903.278.19~1/RELEASE_X86_64 x86_64

Error information

Warning: the Primer plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of PrimeGames\CorePlayer::getSettingsManager() must be an instance of PrimeGames\player\settings\SettingsManager, null returned
File: plugins/Primer.phar/src/PrimeGames/player/settings/traits/HasSettings
Line: #29
Error level: TypeError
20
21
22
23
24
25
26
27
28
29
30
31
32

/** @var SettingsManager */
private $settingsManager;

private function setSettingsManager() : void{
$this->settingsManager = new SettingsManager($this->getDatabaseDataStore());
}

public function getSettingsManager() : SettingsManager{
return $this->settingsManager;
}

}
#0 plugins/Primer.phar/src/PrimeGames/provider/task/player/MySQLLoadPlayerTask(106): PrimeGames\CorePlayer->getSettingsManager()
#1 plugins/Primer.phar/src/PrimeGames/provider/task/player/MySQLLoadPlayerTask(56): PrimeGames\provider\task\player\MySQLLoadPlayerTask->loadPlayer(object PrimeGames\Slammer\SlammerPlayer, array[18])
#2 plugins/Primer.phar/src/PrimeGames/provider/MySQLFetchQueryTask(32): PrimeGames\provider\task\player\MySQLLoadPlayerTask->handleResult(array[1])
#3 plugins/Primer.phar/src/PrimeGames/provider/MySQLTask(115): PrimeGames\provider\MySQLFetchQueryTask->onCompletion(object pocketmine\Server)
#4 plugins/Primer.phar/src/PrimeGames/provider/MySQLProvider(33): PrimeGames\provider\MySQLTask->processResult()
#5 (): PrimeGames\provider\MySQLProvider->PrimeGames\provider\{closure}(object PrimeGames\provider\task\player\MySQLLoadPlayerTask)
#6 plugins/Primer.phar/src/PrimeGames/provider/MySQLProvider(36): Worker->collect(object Closure)
#7 plugins/Primer.phar/src/PrimeGames/provider/MySQLProvider(44): PrimeGames\provider\MySQLProvider->collectTasks()
#8 plugins/Primer.phar/src/PrimeGames/Core(154): PrimeGames\provider\MySQLProvider->heartbeat()
#9 src/pocketmine/scheduler/ClosureTask(57): PrimeGames\Core->PrimeGames\{closure}(integer 1915)
#10 src/pocketmine/scheduler/TaskHandler(159): pocketmine\scheduler\ClosureTask->onRun(integer 1915)
#11 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1915)
#12 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1915)
#13 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 1915)
#14 src/pocketmine/Server(2346): pocketmine\Server->tick()
#15 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#16 src/pocketmine/Server(1785): pocketmine\Server->start()
#17 src/pocketmine/PocketMine(268): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[38] /Users/jack/Development/php/PG/server/, string[46] /Users/jack/Development/php/PG/server/plugins/)
#18 src/pocketmine/PocketMine(291): pocketmine\server()
#19 (1): require(string[93] phar:///Users/jack/Development/php/PG/server/PocketMine-MP.phar/src/pocketmine/P)

Loaded Plugins

  • Show

Server Settings

  • Show