#7304422 Declaration of CorePlugin\CorePlugin::onLoad() must be compatible with pocketmine\plugin\PluginBase::onLoad(): void
Submitted by PocketMine-MP 4.6.1
General information
Version: | 4.6.1 |
---|---|
Git commit: | b20e0453 |
Plugin involvement: | Direct |
Report date: | 2022-08-05 23:50:15 +0000 UTC |
Server uptime: | 0 days 0 hours 0 minutes 0 seconds |
System Information
PHP version: | 8.0.19 |
---|---|
Operating system: | linux |
System banner: | Linux kayizer 4.15.0-189-generic #200-Ubuntu SMP Wed Jun 22 19:53:37 UTC 2022 x86_64 |
Error information
Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: | Declaration of CorePlugin\CorePlugin::onLoad() must be compatible with pocketmine\plugin\PluginBase::onLoad(): void |
---|---|
File: | plugins/CorePlugins/src/CorePlugin/CorePlugin |
Line: | #42 |
Error level: | E_COMPILE_ERROR |
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
private static $api;
/**
* @return mixed
*/
public static function getApi(): CorePlugin{
return self::$api;
}
public function onLoad(){
self::$api = $this;
}
public function onEnable():void{
Managers::init();
$this->getLogger()->info("CorePlugin v1 Aktif Edildi!");
@mkdir($this->getDataFolder());
@mkdir($this->getDataFolder()."Ayarlar/");
@mkdir($this->getDataFolder()."Core/");
@mkdir($this->getDataFolder()."Islands/");
Loaded Plugins
-
Show
Server Settings
-
Show
Installed Composer Dependencies
-
Show
Installed PHP Extensions
-
Show