This commit is contained in:
boy0001 2015-02-22 18:03:25 +11:00
parent 9eb1b0f6f5
commit ef9e1dd1ac
16 changed files with 64 additions and 149 deletions

View file

@ -57,14 +57,15 @@ public class Info extends SubCommand {
World world;
Plot plot;
if (player != null) {
world = player.getWorld();
Location loc = player.getLocation();
String world = loc.getWorld();
if (!PlotSquared.isPlotWorld(world)) {
MainUtil.sendMessage(BukkitUtil.getPlayer(player), C.NOT_IN_PLOT_WORLD);
return false;
}
if (!BukkitPlayerFunctions.isInPlot(player)) {
MainUtil.sendMessage(BukkitUtil.getPlayer(player), C.NOT_IN_PLOT);
return false;
final Plot plot = MainUtil.getPlot(loc);
if (plot == null) {
return !sendMessage(plr, C.NOT_IN_PLOT);
}
plot = MainUtil.getPlot(loc);
} else {