Skip to content

Commit e8fa01b

Browse files
committed
Downgrade to 3.0.0
1 parent cce709f commit e8fa01b

File tree

4 files changed

+22
-15
lines changed

4 files changed

+22
-15
lines changed

plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ author: GiantQuartz
44
website: twitter.com/GiantQuartz
55
main: SkyBlock\SkyBlock
66
version: 2.0.0
7-
api: [4.0.0]
7+
api: [3.0.0]

src/SkyBlock/SkyBlock.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class SkyBlock extends PluginBase {
5454
/** @var SkyBlockListener */
5555
private $eventListener;
5656

57-
protected function onLoad(): void {
57+
public function onLoad(): void {
5858
self::$object = $this;
5959
if(!is_dir($this->getDataFolder())) {
6060
mkdir($this->getDataFolder());
@@ -63,7 +63,7 @@ protected function onLoad(): void {
6363
$this->saveResource("settings.json");
6464
}
6565

66-
protected function onEnable(): void {
66+
public function onEnable(): void {
6767
$this->settings = new SkyBlockSettings($this);
6868
$this->provider = new JSONProvider($this);
6969
$this->sessionManager = new SessionManager($this);
@@ -74,7 +74,7 @@ protected function onEnable(): void {
7474
$this->getLogger()->info("SkyBlock was enabled");
7575
}
7676

77-
protected function onDisable(): void {
77+
public function onDisable(): void {
7878
$this->getLogger()->info("SkyBlock was disabled");
7979
}
8080

src/SkyBlock/generator/IsleGenerator.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@
2222

2323
abstract class IsleGenerator extends Generator {
2424

25+
/** @var array */
26+
protected $settings;
27+
28+
/**
29+
* IsleGenerator constructor.
30+
* @param array $settings
31+
*/
32+
public function __construct(array $settings = []) {
33+
$this->settings = $settings;
34+
}
35+
36+
/**
37+
* @return array
38+
*/
39+
public function getSettings(): array {
40+
return $this->settings;
41+
}
42+
2543
/**
2644
* @return Vector3
2745
*/

src/SkyBlock/generator/generators/BasicIsland.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,12 @@
1818

1919
use pocketmine\block\Block;
2020
use pocketmine\block\BlockIds;
21-
use pocketmine\level\ChunkManager;
2221
use pocketmine\level\generator\object\Tree;
2322
use pocketmine\math\Vector3;
2423
use SkyBlock\generator\IsleGenerator;
2524

2625
class BasicIsland extends IsleGenerator {
2726

28-
/**
29-
* BasicIsland constructor.
30-
* @param ChunkManager $level
31-
* @param int $seed
32-
* @param array $options
33-
*/
34-
public function __construct(ChunkManager $level, $seed, array $options = []) {
35-
parent::__construct($level, $seed, $options);
36-
}
37-
3827
/**
3928
* @return string
4029
*/

0 commit comments

Comments
 (0)