menu
#5777449 Declaration of cheditx\Sega\MainClass::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-14 23:19:01 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.13
Operating system: win
System banner: Windows NT DESKTOP-IIH1O96 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 cheditx\Sega\MainClass::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
File: plugins/Sega/src/cheditx/Sega/main
Line: #11
Error level: E_COMPILE_ERROR
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

namespace cheditx\Sega{

use pocketmine\event\Listener;
use pocketmine\event\player\PlayerJoinEvent;
use pocketmine\plugin\PluginBase;

class MainClass extends PluginBase{

public function onEnable(){
$this->getLogger()->info("§5[Sega] §f> ON!");
}
}

class PlayerListener implements Listener{

public function onPlayerJoined(PlayerJoinEvent $event){
$event->getPlayer()->sendMessage("Hey, vuoi una sega?");
}
}

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show