*and must be owner

This commit is contained in:
boy0001 2014-12-14 01:39:11 +11:00
parent 5926a90cec
commit 29615999b9

View File

@ -50,7 +50,7 @@ public class Delete extends SubCommand {
}
assert plot != null;
final PlotWorld pWorld = PlotMain.getWorldSettings(plot.getWorld());
if (PlotMain.useEconomy && pWorld.USE_ECONOMY && plot!=null && plot.hasOwner()) {
if (PlotMain.useEconomy && pWorld.USE_ECONOMY && plot!=null && plot.hasOwner() && plot.getOwner().equals(plr.getUniqueId())) {
final double c = pWorld.SELL_PRICE;
if (c > 0d) {
final Economy economy = PlotMain.economy;