From 663e8086391aec0d3f8455c88be999dd6ae35667 Mon Sep 17 00:00:00 2001 From: tastybento Date: Tue, 2 Jul 2024 09:29:53 -0700 Subject: [PATCH] Return the Pladdon that was generated --- .../world/bentobox/bskyblock/BSkyBlockPladdon.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/world/bentobox/bskyblock/BSkyBlockPladdon.java b/src/main/java/world/bentobox/bskyblock/BSkyBlockPladdon.java index 9e04af3..f5280e5 100644 --- a/src/main/java/world/bentobox/bskyblock/BSkyBlockPladdon.java +++ b/src/main/java/world/bentobox/bskyblock/BSkyBlockPladdon.java @@ -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; } }