mirror of
https://github.com/BentoBoxWorld/BSkyBlock.git
synced 2024-12-26 17:07:41 +01:00
Return the Pladdon that was generated
This commit is contained in:
parent
d24d965152
commit
663e808639
@ -2,13 +2,19 @@ package world.bentobox.bskyblock;
|
||||
|
||||
|
||||
import world.bentobox.bentobox.api.addons.Addon;
|
||||
import world.bentobox.bentobox.api.addons.GameModeAddon;
|
||||
import world.bentobox.bentobox.api.addons.Pladdon;
|
||||
|
||||
|
||||
public class BSkyBlockPladdon extends Pladdon {
|
||||
|
||||
|
||||
private GameModeAddon addon;
|
||||
|
||||
@Override
|
||||
public Addon getAddon() {
|
||||
return new BSkyBlock();
|
||||
if (addon == null) {
|
||||
addon = new BSkyBlock();
|
||||
}
|
||||
return addon;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user