menu
#6720240 Declaration of Zoumi\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void

Submitted by PocketMine-MP 4.3.1

General information

Version: 4.3.1
Git commit: f7dce4af
Plugin involvement: Direct
Report date: 2022-05-14 10:12:54 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.16
Operating system: win
System banner: Windows NT DESKTOP-CEOAM85 10.0 build 22000 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of Zoumi\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
File: plugins/CobbleBreaker_dev-1/src/Zoumi/Main
Line: #21
Error level: E_COMPILE_ERROR
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use pocketmine\utils\Config;
use pocketmine\math\Vector3;
use pocketmine\utils\TextFormat as C;

class Main extends PluginBase implements Listener {

/** @var Config $conf */
public $conf;

public function onEnable()
{
$this->getLogger()->info(C::YELLOW . "est Activer !");
$this->getServer()->getPluginManager()->registerEvents($this, $this);
@mkdir($this->getDataFolder());
if (!file_exists($this->getDataFolder() . "config.yml")) {
$this->saveResource("config.yml");
}
$this->conf = new Config($this->getDataFolder() . 'config.yml', Config::YAML);
}

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show