1
0
mirror of https://github.com/BentoBoxWorld/Warps.git synced 2024-11-21 18:15:17 +01:00

Return pladdon that was made.

This commit is contained in:
tastybento 2024-07-02 09:36:09 -07:00
parent 2e13892ab8
commit 87f3ea732b

View File

@ -6,9 +6,13 @@ import world.bentobox.bentobox.api.addons.Pladdon;
public class WarpsPladdon extends Pladdon {
private Addon addon;
@Override
public Addon getAddon() {
return new Warp();
if (addon == null) {
addon = new Warp();
}
return addon;
}
}