This commit is contained in:
Jesse Boyd
2016-03-27 03:34:55 +11:00
parent d4d9a9e148
commit 056f77a3ba
7 changed files with 39 additions and 29 deletions

View File

@@ -13,7 +13,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
@CommandDeclaration(command = "help",
description = "Get this help menu",
aliases = {"he", "h", "?"},
aliases = {"he", "?"},
category = CommandCategory.INFO,
usage="help [category|#]",
permission="plots.use")
@@ -23,7 +23,7 @@ public class Help extends Command {
}
@Override
public boolean canExecute(PlotPlayer player) {
public boolean canExecute(PlotPlayer player, boolean message) {
return true;
}

View File

@@ -240,7 +240,7 @@ public class MainCommand extends Command {
}
@Override
public boolean canExecute(PlotPlayer player) {
public boolean canExecute(PlotPlayer player, boolean message) {
return true;
}
}

View File

@@ -92,7 +92,7 @@ public class Merge extends SubCommand {
}
}
final PlotArea plotworld = plot.getArea();
final double price = plotworld.PRICES.get("merge");
final double price = plotworld.PRICES.containsKey("merge") ? plotworld.PRICES.get("merge") : 0;
if (EconHandler.manager != null && plotworld.USE_ECONOMY && price > 0d && EconHandler.manager.getMoney(plr) < price) {
sendMessage(plr, C.CANNOT_AFFORD_MERGE, price + "");
return false;