mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-02-13 10:11:26 +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;
|
||||
}
|
||||
|
||||
if (economy.isEnabled() && island.getStructure() != null
|
||||
if (economy != null && economy.isEnabled() && island.getStructure() != null
|
||||
&& !island.getStructure().isEmpty()
|
||||
&& structureManager.containsStructure(island.getStructure())) {
|
||||
Structure structure = structureManager.getStructure(island.getStructure());
|
||||
|
Loading…
Reference in New Issue
Block a user