menu
#3550779 Return value of PrimeGames\Slammer\SlammerPlayer::getBalance() must be an instance of PrimeGames\economy\contract\balance\Balance, 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:36:51 +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\Slammer\SlammerPlayer::getBalance() must be an instance of PrimeGames\economy\contract\balance\Balance, null returned
File: plugins/Primer.phar/src/PrimeGames/economy/balance/traits/HasBalance
Line: #30
Error level: TypeError
21
22
23
24
25
26
27
28
29
30
31
32
33
     * @var Balance
*/
private $balance;

public function setBalance(DataStore $store, EntryKey $key) : void{
$this->balance = new DataStoreBalance($store, $key);
}

public function getBalance() : Balance{
return $this->balance;
}

}
#0 plugins/Prison.phar/src/PrimeGames/Slammer/provider/task/player/PrisonLoadPlayerTask(48): PrimeGames\Slammer\SlammerPlayer->getBalance()
#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 151)
#9 src/pocketmine/scheduler/TaskHandler(159): pocketmine\scheduler\ClosureTask->onRun(integer 151)
#10 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 151)
#11 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 151)
#12 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 151)
#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