menu
#2469696 date() expects parameter 1 to be string, boolean given

Submitted by PocketMine-MP 3.8.3

General information

Version: 3.8.3
Git commit: 63e58677
Plugin involvement: Direct
Report date: 2019-06-12 10:23:11 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux 2f260aa9430a 4.4.0-148-generic #174-Ubuntu SMP Tue May 7 12:20:14 UTC 2019 x86_64

Error information

Warning: the ScoreHud plugin was directly involved in this crash. Please contact the plugin author.
Message: date() expects parameter 1 to be string, boolean given
File: plugins/ScoreHud.phar/src/JackMD/ScoreHud/Main
Line: #239
Error level: TypeError
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
		$string = str_replace("{level_name}", $player->getLevel()->getName(), $string);
$string = str_replace("{level_folder_name}", $player->getLevel()->getFolderName(), $string);
$string = str_replace("{ip}", $player->getAddress(), $string);
$string = str_replace("{ping}", $player->getPing(), $string);
$string = str_replace("{kills}", $this->dataManager->getPlayerKills($player), $string);
$string = str_replace("{deaths}", $this->dataManager->getPlayerDeaths($player), $string);
$string = str_replace("{kdr}", $this->dataManager->getPlayerKillToDeathRatio($player), $string);
$string = str_replace("{prefix}", $this->dataManager->getPrefix($player), $string);
$string = str_replace("{suffix}", $this->dataManager->getSuffix($player), $string);
$string = str_replace("{time}", date($this->getConfig()->get("time-format")), $string);
$string = str_replace("{date}", date($this->getConfig()->get("date-format")), $string);
$string = str_replace("{cps}", $this->dataManager->getClicks($player), $string);
$string = str_replace("{is_state}", $this->dataManager->getIsleState($player), $string);
$string = str_replace("{is_blocks}", $this->dataManager->getIsleBlocks($player), $string);
$string = str_replace("{is_members}", $this->dataManager->getIsleMembers($player), $string);
$string = str_replace("{is_size}", $this->dataManager->getIsleSize($player), $string);
$string = str_replace("{is_rank}", $this->dataManager->getIsleRank($player), $string);

return $string;
}
#0 plugins/ScoreHud.phar/src/JackMD/ScoreHud/Main(239): date(boolean )
#1 plugins/ScoreHud.phar/src/JackMD/ScoreHud/Main(197): JackMD\ScoreHud\Main->process(pocketmine\Player object, string ..dName: ..5GALANGINDRA)
#2 plugins/ScoreHud.phar/src/JackMD/ScoreHud/Main(179): JackMD\ScoreHud\Main->displayDefaultScoreboard(pocketmine\Player object)
#3 plugins/ScoreHud.phar/src/JackMD/ScoreHud/Main(147): JackMD\ScoreHud\Main->updateScore(pocketmine\Player object)
#4 plugins/ScoreHud.phar/src/JackMD/ScoreHud/task/ScoreUpdateTask(73): JackMD\ScoreHud\Main->addScore(pocketmine\Player object, string ..l..aServer ..dName)
#5 src/pocketmine/scheduler/TaskHandler(159): JackMD\ScoreHud\task\ScoreUpdateTask->onRun(integer 1201)
#6 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1201)
#7 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1201)
#8 src/pocketmine/Server(2560): pocketmine\plugin\PluginManager->tickSchedulers(integer 1201)
#9 src/pocketmine/Server(2336): pocketmine\Server->tick()
#10 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#11 src/pocketmine/Server(1775): pocketmine\Server->start()
#12 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /aternos/server/, string /aternos/server/plugins/)
#13 (1): require(string phar:///aternos/server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show