menu
#3550843 Argument 1 passed to PrimeGames\component\loginreward\DataStoreLoginTracker::setLastRewardClaimDate() must be of the type string, null given

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:50:57 +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: Argument 1 passed to PrimeGames\component\loginreward\DataStoreLoginTracker::setLastRewardClaimDate() must be of the type string, null given
File: plugins/Primer.phar/src/PrimeGames/component/loginreward/DataStoreLoginTracker
Line: #61
Error level: TypeError
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
     * @inheritDoc
*/
public function setLastRewardClaimTimestamp(int $timestamp) : void{
$this->store->setInt($this->rewardClaimKey, $timestamp);
}

/**
* @inheritDoc
*/
public function setLastRewardClaimDate(string $date) : void{
$this->setLastRewardClaim(DateTime::createFromFormat("Y-m-d", $date));
}

/**
* @inheritDoc
*/
public function getLastRewardClaim() : DateTime{
return new DateTime("@" . $this->getLastRewardClaimTimestamp());
}

#0 plugins/Prison.phar/src/PrimeGames/Slammer/provider/task/player/PrisonLoadPlayerTask(46): PrimeGames\component\loginreward\DataStoreLoginTracker->setLastRewardClaimDate(NULL )
#1 plugins/Primer.phar/src/PrimeGames/provider/MySQLFetchQueryTask(32): PrimeGames\Slammer\provider\task\player\PrisonLoadPlayerTask->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(33): PrimeGames\provider\MySQLTask->processResult()
#4 (): PrimeGames\provider\MySQLProvider->PrimeGames\provider\{closure}(object PrimeGames\Slammer\provider\task\player\PrisonLoadPlayerTask)
#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(154): PrimeGames\provider\MySQLProvider->heartbeat()
#8 src/pocketmine/scheduler/ClosureTask(57): PrimeGames\Core->PrimeGames\{closure}(integer 233)
#9 src/pocketmine/scheduler/TaskHandler(159): pocketmine\scheduler\ClosureTask->onRun(integer 233)
#10 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 233)
#11 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 233)
#12 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 233)
#13 src/pocketmine/Server(2346): pocketmine\Server->tick()
#14 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#15 src/pocketmine/Server(1785): pocketmine\Server->start()
#16 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/)
#17 src/pocketmine/PocketMine(291): 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