menu
#5777662 Declaration of DanielYTK\Cash\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void

Submitted by PocketMine-MP 4.0.6

General information

Version: 4.0.6
Git commit: f7d25f25
Plugin involvement: Direct
Report date: 2022-01-15 00:40:54 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux ip135-148-6-172 4.15.0-156-generic #163-Ubuntu SMP Thu Aug 19 23:31:58 UTC 2021 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of DanielYTK\Cash\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
File: plugins/Cash_v1.phar/src/DanielYTK/Cash/Main
Line: #19
Error level: E_COMPILE_ERROR
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

use pocketmine\event\player\PlayerJoinEvent;

use pocketmine\command\CommandSender;
use pocketmine\command\Command;

use pocketmine\event\player\PlayerItemHeldEvent;

class Main extends PluginBase implements Listener{
public function onEnable(){
$this->getServer()->getLogger()->info("§9Cash§f - §aHabilitado");
$this->getServer()->getLogger()->info("§dBy DanielYTK");
$this->getServer()->getPluginManager()->registerEvents($this, $this);
@mkdir($this->getDataFolder());
$this->cmd = new Config($this->getDataFolder(). "comandos.yml", Config::YAML, [
"cash" => "para ver o seu cash",
"setcash" => "para setar o cash dos jogadores",
"addcash" => "para adicionar cash a conta de um jogador",
"takecash" => "para remover cash da conta de um jogador",
]);

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show