File tree Expand file tree Collapse file tree 4 files changed +22
-15
lines changed Expand file tree Collapse file tree 4 files changed +22
-15
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ author: GiantQuartz
44website : twitter.com/GiantQuartz
55main : SkyBlock\SkyBlock
66version : 2.0.0
7- api : [4 .0.0]
7+ api : [3 .0.0]
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 2222
2323abstract 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 */
Original file line number Diff line number Diff line change 1818
1919use pocketmine \block \Block ;
2020use pocketmine \block \BlockIds ;
21- use pocketmine \level \ChunkManager ;
2221use pocketmine \level \generator \object \Tree ;
2322use pocketmine \math \Vector3 ;
2423use SkyBlock \generator \IsleGenerator ;
2524
2625class 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 */
You can’t perform that action at this time.
0 commit comments