Skip to content

Commit

Permalink
Return the Pladdon that was generated
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jul 2, 2024
1 parent d24d965 commit 663e808
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/java/world/bentobox/bskyblock/BSkyBlockPladdon.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@


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

0 comments on commit 663e808

Please sign in to comment.