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