menu
#7556768 Call to a member function setTime() on null

Submitted by PocketMine-MP 4.9.0

General information

Version: 4.9.0
Git commit: 785dc712
Plugin involvement: Direct
Report date: 2022-09-22 21:56:10 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.15
JIT status: Not available
Operating system: linux
System banner: Linux ns1010467 5.4.0-126-generic #142-Ubuntu SMP Fri Aug 26 12:12:57 UTC 2022 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function setTime() on null
File: plugins/Practice/src/practice/Practice
Line: #102
Error level: Error
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
        $this->getServer()->getLogger()->addAttachment(new ErrorLogger());

Curl::register($this);

$this->serverManager = new ServerManager($this);

$this->getServer()->getNetwork()->setName(TextFormat::colorize("&r&6&lShock &r&7| &fPractice"));

$defaultWorld = $this->getServer()->getWorldManager()->getDefaultWorld();
$defaultWorld->setTime(6000);
$defaultWorld->stopTime();
}

public function onEnable(): void
{
if (!is_dir($this->getDataFolder())) {
mkdir($this->getDataFolder());
$this->saveResource("config.yml");
}

#0 pmsrc/src/plugin/PluginBase(75): practice\Practice->onLoad()
#1 pmsrc/src/plugin/PluginManager(213): pocketmine\plugin\PluginBase->__construct(object DevTools\FolderPluginLoader#21962, object pocketmine\Server#10, object pocketmine\plugin\PluginDescription#21966, string[48] /home/ubuntu/shock/practice/plugin_data/Practice, string[44] /home/ubuntu/shock/practice/plugins/Practice, object pocketmine\plugin\DiskResourceProvider#22003)
#2 pmsrc/src/plugin/PluginManager(362): pocketmine\plugin\PluginManager->internalLoadPlugin(string[44] /home/ubuntu/shock/practice/plugins/Practice, object DevTools\FolderPluginLoader#21962, object pocketmine\plugin\PluginDescription#21966)
#3 pmsrc/src/Server(1009): pocketmine\plugin\PluginManager->loadPlugins(string[36] /home/ubuntu/shock/practice/plugins/, int 0)
#4 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[28] /home/ubuntu/shock/practice/, string[36] /home/ubuntu/shock/practice/plugins/)
#5 pmsrc/src/PocketMine(328): pocketmine\server()
#6 pmsrc(11): require(string[72] phar:///home/ubuntu/shock/practice/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show