mirror of
https://github.com/BentoBoxWorld/CaveBlock.git
synced 2024-09-24 03:22:34 +02:00
Return the Pladdon that was created.
This commit is contained in:
parent
9e51156f87
commit
3694f86839
@ -7,8 +7,13 @@ import world.bentobox.bentobox.api.addons.Pladdon;
|
||||
|
||||
public class CaveBlockPladdon extends Pladdon {
|
||||
|
||||
private Addon addon;
|
||||
|
||||
@Override
|
||||
public Addon getAddon() {
|
||||
return new CaveBlock();
|
||||
if (addon == null) {
|
||||
addon = new CaveBlock();
|
||||
}
|
||||
return addon;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user