Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

error #40

Closed
axelmine opened this issue Dec 3, 2021 · 1 comment
Closed

error #40

axelmine opened this issue Dec 3, 2021 · 1 comment

Comments

@axelmine
Copy link

axelmine commented Dec 3, 2021

Error: Declaration of AkmalFairuz\MultiVersion\Loader::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
File: plugins/multiversion(1).phar/src/AkmalFairuz/MultiVersion/Loader
Line: 34
Type: E_COMPILE_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN

Code:
[25]     public $craftingManager;
[26] 
[27]     /** @var bool */
[28]     public $canJoin = false;
[29] 
[30]     public static function getInstance() : self{
[31]         return self::$instance;
[32]     }
[33] 
[34]     public function onEnable(){
[35]         self::$instance = $this;
[36] 
[37]         foreach($this->getResources() as $k => $v) {
[38]             $this->saveResource($k, $k !== "config.yml");
[39]         }
[40] 
[41]         Config::init($this->getDataFolder() . "config.yml");
[42] 
[43]         self::$resourcesPath = $this->getDataFolder();
[44]         MultiVersionRuntimeBlockMapping::init();

Backtrace:

PocketMine-MP version: 4.0.0 [Protocol 475]
@mukeenanyafiq
Copy link

This plugin was not support in API 4.0.0
It will support in 10 January 2022

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants