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

Submitted by PocketMine-MP 4.2.10

General information

Version: 4.2.10
Git commit: 3339225f
Plugin involvement: Direct
Report date: 2022-05-14 08:02:12 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.18
Operating system: win
System banner: Windows NT DESKTOP-B5RCF2T 10.0 build 19044 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of MultiProtocol\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
File: plugins/MultiProtocol-API4beta-1.0.0-API4beta.1713/src/MultiProtocol/Main
Line: #17
Error level: E_COMPILE_ERROR
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use pocketmine\network\mcpe\protocol\ProtocolInfo;
use pocketmine\event\server\DataPacketReceiveEvent;
use pocketmine\network\mcpe\protocol\LoginPacket;


class Main extends PluginBase implements Listener {

public $acceptProtocol = [];

public function onEnable() {
$this->getServer()->getPluginManager()->registerEvents($this, $this);
$this->getLogger()->info("MultiProtocol Plugin Enable!");
$this->getLogger()->info("Created by BajanVlogs, maintained for API 4 including beta by princepines");
$this->getLogger()->info("This Plugin will be updated every new release of beta builds.");
$this->getLogger()->info("This plugin can be redistrubuted, modified, etc. based on the License.");

@mkdir($this->getDataFolder());
$this->acceptProtocol = (new Config($this->getDataFolder()."protocol.yml", Config::YAML))->get("accept-protocol");

if ($this->acceptProtocol === false || empty($this->acceptProtocol)) {

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show