return the pladdon that was generated.

This commit is contained in:
tastybento 2024-07-02 09:31:01 -07:00
parent e424560c37
commit 7441b7717f

View File

@ -15,9 +15,13 @@ import world.bentobox.bentobox.api.addons.Pladdon;
*/
public class ChallengesPladdon extends Pladdon
{
private Addon addon;
@Override
public Addon getAddon()
{
return new ChallengesAddon();
if (addon == null) {
addon = new ChallengesAddon();
}
return addon;
}
}