menu
#2387619 Return value of TheGabeRule\UpsideDown\Main::getInstance() must be an instance of TheGabeRule\UpsideDown\Main, null returned

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-05-15 19:47:51 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: win
System banner: Windows NT GABERIVERA-PC 10.0 build 17763 (Windows 10) AMD64

Error information

Warning: the UpsideDown plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of TheGabeRule\UpsideDown\Main::getInstance() must be an instance of TheGabeRule\UpsideDown\Main, null returned
File: plugins/UpsideDown/src/TheGabeRule/UpsideDown/Main
Line: #22
Error level: TypeError
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
        $this->getLogger()->info("UpsideDown Plugin Loaded!");
}

public function onEnable() : void{
$this->getLogger()->info("UpsideDown Plugin Loaded!");
$this->getScheduler()->scheduleTask(new FlipUpsideDown());
}

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

}

class FlipUpsideDown extends Task{
public function onRun(int $tick) : void{
foreach(Main::getInstance()->getServer()->getOnlinePlayers() as $player){
$player->setRotation(180, 0);
}
}
#0 plugins/UpsideDown/src/TheGabeRule/UpsideDown/Main(29): TheGabeRule\UpsideDown\Main::getInstance()
#1 src/pocketmine/scheduler/TaskHandler(159): TheGabeRule\UpsideDown\FlipUpsideDown->onRun(integer 1)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1)
#3 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1)
#4 src/pocketmine/Server(2558): pocketmine\plugin\PluginManager->tickSchedulers(integer 1)
#5 src/pocketmine/Server(2334): pocketmine\Server->tick()
#6 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1774): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Gabe Rivera\Desktop\PocketMine Server\, string C:\Users\Gabe Rivera\Desktop\PocketMine Server\plugins\)
#9 (1): require(string phar://C:/Users/Gabe Rivera/Desktop/PocketMine Server/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show