menu
#9249112 Declaration of DatabaseManager\MainClass::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void

Submitted by PocketMine-MP 4.8.1

General information

Version: 4.8.1
Git commit: 74fc8f4d
Plugin involvement: Direct
Report date: 2023-09-19 15:13:47 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.27
JIT status: Not available
Operating system: linux
System banner: Linux vd3100 5.13.0-35-generic #40-Ubuntu SMP Mon Mar 7 08:03:10 UTC 2022 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Thread:
Message: Declaration of DatabaseManager\MainClass::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
File: plugins/DatabaseManager/src/DatabaseManager/MainClass
Line: #29
Type: E_COMPILE_ERROR
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
        "King" => 35,
"DRAGON" => 40,
"YouTube" => 50,
"Builder" => 60,
"HELPER" => 70,
"ADMIN" => 80,
"STAFF" => 90
];

public function onEnable(){
$this->prepare();

$this->cmd = new Commands($this);
$this->getServer()->getPluginManager()->registerEvents(new EventHandler($this), $this);
}
public function addBFFAElo(Player $p) : void{
$cfg = $this->getPlayerConfig($p);
$cfg->setNested("BuildFFA.Elo", $cfg->getNested("BuildFFA.Elo") + 3);
$cfg->save();
}

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show