mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-02-15 11:11:29 +01:00
fix npe when no economy is present
This commit is contained in:
parent
91157c2951
commit
17386aa120
@ -136,7 +136,7 @@ public class ConfirmCommand extends SubCommand {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (economy.isEnabled() && island.getStructure() != null
|
if (economy != null && economy.isEnabled() && island.getStructure() != null
|
||||||
&& !island.getStructure().isEmpty()
|
&& !island.getStructure().isEmpty()
|
||||||
&& structureManager.containsStructure(island.getStructure())) {
|
&& structureManager.containsStructure(island.getStructure())) {
|
||||||
Structure structure = structureManager.getStructure(island.getStructure());
|
Structure structure = structureManager.getStructure(island.getStructure());
|
||||||
|
Loading…
Reference in New Issue
Block a user