mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 20:42:55 +00:00
dsakjldjsakljksld jdsiklsadjklsad jk
This commit is contained in:
parent
f20a21c1c3
commit
fa822dcf29
3 changed files with 68 additions and 44 deletions
|
@ -39,6 +39,7 @@ import com.intellectualcrafters.plot.object.PlotWorld;
|
|||
import com.intellectualcrafters.plot.util.ClusterManager;
|
||||
import com.intellectualcrafters.plot.util.PlayerFunctions;
|
||||
import com.intellectualcrafters.plot.util.PlotHelper;
|
||||
import com.intellectualcrafters.plot.util.bukkit.BukkitUtil;
|
||||
|
||||
public class Auto extends SubCommand {
|
||||
public Auto() {
|
||||
|
@ -163,7 +164,7 @@ public class Auto extends SubCommand {
|
|||
String worldname = world.getName();
|
||||
PlotWorld plotworld = PlotSquared.getWorldSettings(worldname);
|
||||
if (plotworld.TYPE == 2) {
|
||||
Location loc = plr.getLocation();
|
||||
Location loc = BukkitUtil.getLocation(plr);
|
||||
Plot plot = PlotHelper.getCurrentPlot(new com.intellectualcrafters.plot.object.Location(worldname, loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()));
|
||||
if (plot == null) {
|
||||
return sendMessage(plr, C.NOT_IN_PLOT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue