crnw-dev / IslandArchitect

An plugin to create custom sky island generators for the SkyBlock plugin
Apache License 2.0
13 stars 4 forks source link

Cannot make non static method room17\SkyBlock\island\IslandFactory::createIslandFor() static in class Clouria\IslandArchitect\customized\skyblock\CustomSkyBlockIslandFactory #17

Closed BLAST1718 closed 3 years ago

BLAST1718 commented 3 years ago

PocketMine-MP Crash Dump Mon Mar 15 11:22:11 UTC 2021

Error: Cannot make non static method room17\SkyBlock\island\IslandFactory::createIslandFor() static in class Clouria\IslandArchitect\customized\skyblock\CustomSkyBlockIslandFactory File: plugins/IslandArchitect-1.2.0/src/Clouria/IslandArchitect/customized/skyblock/CustomSkyBlockIslandFactory Line: 47 Type: E_COMPILE_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: IslandArchitect v1.2.0

Code: [38] runtime\TemplateIslandGenerator}; [39] [40] use function uniqid; [41] use function microtime; [42] use function serialize; [43] [44] class CustomSkyBlockIslandFactory extends IslandFactory { [45] use CustomizableClassTrait; [46] [47] public static function createIslandFor(Session $session, string $type): void { [48] $mapped = IslandArchitect::getInstance()->mapGeneratorType($type); [49] if ($mapped === null) { [50] parent::createIslandFor($session, $type); [51] return; [52] } [53] [54] $ev = new IslandWorldPreCreateEvent($session, static::createIslandIdentifier(), $mapped); [55] $ev->call(); [56] $identifier = $ev->getIdentifier(); [57]

Endermanbugzjfc commented 3 years ago

@BLAST1718 What is the version of your SkyBlock plugin?

Endermanbugzjfc commented 3 years ago

@BLAST1718 I know what caused this error, you are using the master branch of SkyBlock plugin repository, check out commit 63c9a69ad21db776a361846d08c5af2ef3f3ad54!

Endermanbugzjfc commented 3 years ago

I'll make the plugin compatible with newer SkyBlock versions in future but now now.