Return the Pladdon that was generated

This commit is contained in:
tastybento 2024-07-02 09:29:53 -07:00
parent d24d965152
commit 663e808639

View File

@ -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;
}
}