mirror of
https://github.com/BentoBoxWorld/CaveBlock.git
synced 2024-09-25 03:32:40 +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 {
|
public class CaveBlockPladdon extends Pladdon {
|
||||||
|
|
||||||
|
private Addon addon;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Addon getAddon() {
|
public Addon getAddon() {
|
||||||
return new CaveBlock();
|
if (addon == null) {
|
||||||
|
addon = new CaveBlock();
|
||||||
|
}
|
||||||
|
return addon;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user