mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-22 02:25:56 +01:00
Return pladdon that was made.
This commit is contained in:
parent
c0653790b1
commit
b641d0f450
@ -9,8 +9,14 @@ import world.bentobox.bentobox.api.addons.Pladdon;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class LevelPladdon extends Pladdon {
|
public class LevelPladdon extends Pladdon {
|
||||||
|
|
||||||
|
private Addon addon;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Addon getAddon() {
|
public Addon getAddon() {
|
||||||
return new Level();
|
if (addon == null) {
|
||||||
|
addon = new Level();
|
||||||
|
}
|
||||||
|
return addon;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user