menu
#3236593 Argument 1 passed to PrimeGames\CorePlayer::setRegisterDate() must be an instance of DateTime or null, bool given

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: Direct
Report date: 2019-12-01 05:45:17 +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: Sat Oct 12 00:02:19 PDT 2019; root:xnu-4903.278.12~1/RELEASE_X86_64 x86_64

Error information

Warning: the Primer plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to PrimeGames\CorePlayer::setRegisterDate() must be an instance of DateTime or null, bool given
File: plugins/Primer.phar/src/PrimeGames/CorePlayer
Line: #647
Error level: TypeError
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
            unset($this->groups[$identifier]);
}else{
$this->logger->warning("Trying to remove a non assigned group to {$this->username}");
}
}

/**
* @param \DateTime|null $when
*/
public function setRegisterDate(?\DateTime $when) : void{
$this->registerDate = $when ?? new \DateTime();
}

/**
* @param bool $sentenced
*/
public function setSentenced(bool $sentenced = true) : void{
$this->sentenced = $sentenced;
}

#0 plugins/Primer.phar/src/PrimeGames/provider/task/player/MySQLLoadPlayerTask(60): PrimeGames\CorePlayer->setRegisterDate(boolean )
#1 plugins/Primer.phar/src/PrimeGames/provider/MySQLFetchQueryTask(47): PrimeGames\provider\task\player\MySQLLoadPlayerTask->handleResult(array[1])
#2 plugins/Primer.phar/src/PrimeGames/provider/MySQLTask(115): PrimeGames\provider\MySQLFetchQueryTask->onCompletion(object pocketmine\Server)
#3 plugins/Primer.phar/src/PrimeGames/provider/MySQLProvider(34): PrimeGames\provider\MySQLTask->processResult()
#4 (): PrimeGames\provider\MySQLProvider->PrimeGames\provider\{closure}(object PrimeGames\provider\task\player\MySQLLoadPlayerTask)
#5 plugins/Primer.phar/src/PrimeGames/provider/MySQLProvider(36): Worker->collect(object Closure)
#6 plugins/Primer.phar/src/PrimeGames/provider/MySQLProvider(44): PrimeGames\provider\MySQLProvider->collectTasks()
#7 plugins/Primer.phar/src/PrimeGames/Core(155): PrimeGames\provider\MySQLProvider->heartbeat()
#8 src/pocketmine/scheduler/ClosureTask(57): PrimeGames\Core->PrimeGames\{closure}(integer 235)
#9 src/pocketmine/scheduler/TaskHandler(159): pocketmine\scheduler\ClosureTask->onRun(integer 235)
#10 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 235)
#11 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 235)
#12 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 235)
#13 src/pocketmine/Server(2346): pocketmine\Server->tick()
#14 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#15 src/pocketmine/Server(1784): pocketmine\Server->start()
#16 src/pocketmine/PocketMine(278): 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/)
#17 src/pocketmine/PocketMine(300): pocketmine\server()
#18 (1): require(string[93] phar:///Users/jack/Development/php/PG/server/PocketMine-MP.phar/src/pocketmine/P)

Loaded Plugins

  • Show

Server Settings

  • Show