menu
#6719840 jojoe77777\FormAPI\ScoreboardsDX\Scoreboards::getInstance(): Return value must be of type jojoe77777\FormAPI\ScoreboardsDX\Scoreboards, null returned

Submitted by PocketMine-MP 4.3.0

General information

Version: 4.3.0
Git commit: e4ce467c
Plugin involvement: Direct
Report date: 2022-05-14 09:26:56 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 2 seconds

System Information

PHP version: 8.0.12
Operating system: linux
System banner: Linux c66d20e2c133 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: jojoe77777\FormAPI\ScoreboardsDX\Scoreboards::getInstance(): Return value must be of type jojoe77777\FormAPI\ScoreboardsDX\Scoreboards, null returned
File: /home/gs-41269/virions/libFormAPI_dev-1 (2).phar/src/jojoe77777/FormAPI/ScoreboardsDX/Scoreboards
Line: #28
Error level: TypeError
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
    private static $instance;
/** @var array $scoreboards */
private $scoreboards = [];

public function onLoad() : void {
self::$instance = $this;
}

public static function getInstance() : self {
return self::$instance;
}

public function new(Player $player, string $objectiveName, string $displayName) : void {
if(isset($this->scoreboards[$player->getName()])) {
$this->remove($player);
}
$pk = new SetDisplayObjectivePacket();
$pk->displaySlot = "sidebar";
$pk->objectiveName = $objectiveName;
$pk->displayName = $displayName;
#0 plugins/CoffeeAPI_kurwa(1) (1).phar/src/vasyadevnull/task/ScoreHUDUpdadeTask(49): jojoe77777\FormAPI\ScoreboardsDX\Scoreboards::getInstance()
#1 plugins/CoffeeAPI_kurwa(1) (1).phar/src/vasyadevnull/forms/NickForm(104): vasyadevnull\task\ScoreHUDUpdadeTask::updateHUD(object vasyadevnull\CustomPlayer#30893, true)
#2 plugins/CoffeeAPI_kurwa(1) (1).phar/src/vasyadevnull/EventHandler(205): vasyadevnull\forms\NickForm::updateNameTag(object vasyadevnull\CustomPlayer#30893)
#3 pmsrc/src/event/RegisteredListener(75): vasyadevnull\EventHandler->onPlayerLogin(object pocketmine\event\player\PlayerLoginEvent#30727)
#4 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerLoginEvent#30727)
#5 pmsrc/src/Server(1667): pocketmine\event\Event->call()
#6 pmsrc/src/network/mcpe/NetworkSession(243): pocketmine\Server->addOnlinePlayer(object vasyadevnull\CustomPlayer#30893)
#7 pmsrc/src/promise/Promise(45): pocketmine\network\mcpe\NetworkSession->onPlayerCreated(object vasyadevnull\CustomPlayer#30893)
#8 pmsrc/src/network/mcpe/NetworkSession(234): pocketmine\promise\Promise->onCompletion(object Closure#30728, object Closure#30729)
#9 pmsrc/src/network/mcpe/NetworkSession(692): pocketmine\network\mcpe\NetworkSession->createPlayer()
#10 pmsrc/src/network/mcpe/handler/ResourcePacksPacketHandler(142): pocketmine\network\mcpe\NetworkSession->pocketmine\network\mcpe\{closure}()
#11 pmsrc/vendor/pocketmine/bedrock-protocol/src/ResourcePackClientResponsePacket(61): pocketmine\network\mcpe\handler\ResourcePacksPacketHandler->handleResourcePackClientResponse(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket#30721)
#12 pmsrc/src/network/mcpe/NetworkSession(398): pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket->handle(object pocketmine\network\mcpe\handler\ResourcePacksPacketHandler#30719)
#13 plugins/FakePlayer.phar/src/muqsit/fakeplayer/Loader(149): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket#30721, string[4] ....)
#14 plugins/FakePlayer.phar/src/muqsit/fakeplayer/Loader(206): muqsit\fakeplayer\Loader->addPlayer(object muqsit\fakeplayer\info\FakePlayerInfo#30408)
#15 plugins/FakePlayer.phar/src/muqsit/fakeplayer/Loader(104): muqsit\fakeplayer\Loader->addConfiguredPlayers()
#16 pmsrc/src/scheduler/ClosureTask(63): muqsit\fakeplayer\Loader->muqsit\fakeplayer\{closure}()
#17 pmsrc/src/scheduler/TaskHandler(117): pocketmine\scheduler\ClosureTask->onRun()
#18 pmsrc/src/scheduler/TaskScheduler(144): pocketmine\scheduler\TaskHandler->run()
#19 pmsrc/src/plugin/PluginManager(478): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 20)
#20 pmsrc/src/Server(1769): pocketmine\plugin\PluginManager->tickSchedulers(integer 20)
#21 pmsrc/src/Server(1658): pocketmine\Server->tick()
#22 pmsrc/src/Server(1047): pocketmine\Server->tickProcessor()
#23 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[15] /home/gs-41269/, string[23] /home/gs-41269/plugins/)
#24 pmsrc/src/PocketMine(327): pocketmine\server()
#25 pmsrc(11): require(string[83] phar:///pro/bin/mcpe/pocketmine-1.18.30-4.3.0/PocketMine-MP.phar/src/PocketMine.)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show