mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
fix other NPE
This commit is contained in:
parent
e08db3d12b
commit
88d8339cfd
@ -140,7 +140,8 @@ public class MainCommand extends Command {
|
|||||||
if (EconHandler.manager != null) {
|
if (EconHandler.manager != null) {
|
||||||
PlotArea area = player.getApplicablePlotArea();
|
PlotArea area = player.getApplicablePlotArea();
|
||||||
if (area != null) {
|
if (area != null) {
|
||||||
Double price = area.PRICES.get(cmd.getFullId()).evalute(0d);
|
Expression<Double> priceEval = area.PRICES.get(cmd.getFullId());
|
||||||
|
Double price = priceEval != null ? priceEval.evalute(0d) : 0d;
|
||||||
if (price != null && EconHandler.manager.getMoney(player) < price) {
|
if (price != null && EconHandler.manager.getMoney(player) < price) {
|
||||||
if (failure != null) {
|
if (failure != null) {
|
||||||
failure.run();
|
failure.run();
|
||||||
|
Loading…
Reference in New Issue
Block a user