menu
#3554025 Call to a member function new() on null

Submitted by PocketMine-MP 3.11.2

General information

Version: 3.11.2
Git commit: a37d7401
Plugin involvement: Direct
Report date: 2020-01-14 19:15:02 +0000 UTC

System Information

PHP version: 7.3.11
Operating system: linux
System banner: Linux vultr.guest 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64

Error information

Warning: the UltraCore plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function new() on null
File: plugins/UltraCore.0.1 by TG.phar/src/Core/task/ItemsTask
Line: #272
Error level: Error
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
		public function myScoreTask(Player $pl) {
$api = Core::getInstance()->score;
$scoreMD = new Config(Core::getInstance()->getDataFolder().strtolower("scoresetting").".yml", Config::YAML);
$tools = $scoreMD->get("SCORE");
$server = $tools["SCORE_SERVER_NAME"];
$ip = $tools["SCORE_SERVER_IP"];
$rank = Core::getInstance()->getMyRank($pl);
$color1 = str_replace("&","§",$tools["SCORE_COLOR_#1"]);
$color2 = str_replace("&","§",$tools["SCORE_COLOR_#2"]);
$api->new($pl, $pl->getName()," ".$color1.$server." ");
$api->setLine($pl, 1, " ".TE::AQUA.TE::BOLD.TE::RED);
$api->setLine($pl, 2, " ".$color1."You Ping: ");
$api->setLine($pl, 3, " ".$color2.$pl->getPing());
$api->setLine($pl, 1, " ".TE::AQUA.TE::BOLD.TE::RED);
$api->setLine($pl, 5, " ".$color1."You Name: ");
$api->setLine($pl, 6, " ".$color2.$pl->getName());
$api->setLine($pl, 1, " ".TE::AQUA.TE::BOLD.TE::RED);
$api->setLine($pl, 8, " ".$color1."You Rank: ");
$api->setLine($pl, 9, " ".$color2.$rank);
$api->setLine($pl, 10, " ".TE::WHITE.$ip." ");
#0 plugins/UltraCore.0.1 by TG.phar/src/Core/task/ItemsTask(67): Core\task\ItemsTask->myScoreTask(object pocketmine\Player)
#1 src/pocketmine/scheduler/TaskHandler(159): Core\task\ItemsTask->onRun(integer 44881)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 44881)
#3 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 44881)
#4 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 44881)
#5 src/pocketmine/Server(2346): pocketmine\Server->tick()
#6 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1785): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[44] /home/minecraft/multicraft/servers/server18/, string[52] /home/minecraft/multicraft/servers/server18/plugins/)
#9 src/pocketmine/PocketMine(295): pocketmine\server()
#10 (1): require(string[88] phar:///home/minecraft/multicraft/jar/Pocketmine-1.14.phar/src/pocketmine/Pocket)

Loaded Plugins

  • Show

Server Settings

  • Show