mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
wall sign issue
This commit is contained in:
parent
4f7f439a2a
commit
d777b42a48
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user