mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-07 21:13:11 +00:00
inplot
This commit is contained in:
parent
9eb1b0f6f5
commit
ef9e1dd1ac
16 changed files with 64 additions and 149 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue