mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-08-04 21:45:26 +02:00
3.3.2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -240,7 +240,7 @@ public class MainCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canExecute(PlotPlayer player) {
|
||||
public boolean canExecute(PlotPlayer player, boolean message) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user