wall sign issue

This commit is contained in:
boy0001 2014-12-18 18:45:26 +11:00
parent 4f7f439a2a
commit d777b42a48
2 changed files with 4 additions and 3 deletions

View File

@ -52,7 +52,7 @@ public class Unclaim extends SubCommand {
} }
assert plot != null; assert plot != null;
final PlotWorld pWorld = PlotMain.getWorldSettings(plot.getWorld()); final PlotWorld pWorld = PlotMain.getWorldSettings(plot.getWorld());
if (PlotMain.useEconomy && pWorld.USE_ECONOMY) { if (PlotMain.useEconomy && pWorld.USE_ECONOMY && (plot != null) && plot.hasOwner() && plot.getOwner().equals(plr.getUniqueId())) {
final double c = pWorld.SELL_PRICE; final double c = pWorld.SELL_PRICE;
if (c > 0d) { if (c > 0d) {
final Economy economy = PlotMain.economy; final Economy economy = PlotMain.economy;
@ -68,8 +68,9 @@ public class Unclaim extends SubCommand {
} }
} }
else { else {
PlayerFunctions.sendMessage(plr, "Plot removal has been denied."); PlayerFunctions.sendMessage(plr, "Plot unclaim has been denied.");
} }
PlayerFunctions.sendMessage(plr, C.);
return true; return true;
} }
} }

View File

@ -259,7 +259,7 @@ public class PlotHelper {
final PlotWorld plotworld = PlotMain.getWorldSettings(world); final PlotWorld plotworld = PlotMain.getWorldSettings(world);
final Location loc = manager.getSignLoc(world, plotworld, p); final Location loc = manager.getSignLoc(world, plotworld, p);
final Block bs = loc.getBlock(); final Block bs = loc.getBlock();
if (bs.getType() != Material.WALL_SIGN) { if (bs.getType() == Material.WALL_SIGN) {
bs.setType(Material.AIR); bs.setType(Material.AIR);
} }
} }