mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-07-25 23:13:36 +00:00
PlotPlayer
This commit is contained in:
parent
fa6b78f117
commit
16f5cc1f36
47 changed files with 1501 additions and 564 deletions
|
@ -26,7 +26,7 @@ import org.bukkit.entity.Player;
|
|||
import com.intellectualcrafters.plot.PlotSquared;
|
||||
import com.intellectualcrafters.plot.config.C;
|
||||
import com.intellectualcrafters.plot.object.PlotId;
|
||||
import com.intellectualcrafters.plot.util.PlotHelper;
|
||||
import com.intellectualcrafters.plot.util.MainUtil;
|
||||
import com.intellectualcrafters.plot.util.bukkit.PlayerFunctions;
|
||||
|
||||
public class Target extends SubCommand {
|
||||
|
@ -41,12 +41,12 @@ public class Target extends SubCommand {
|
|||
return false;
|
||||
}
|
||||
if (args.length == 1) {
|
||||
final PlotId id = PlotHelper.parseId(args[1]);
|
||||
final PlotId id = MainUtil.parseId(args[1]);
|
||||
if (id == null) {
|
||||
PlayerFunctions.sendMessage(plr, C.NOT_VALID_PLOT_ID);
|
||||
return false;
|
||||
}
|
||||
final Location loc = PlotHelper.getPlotHome(plr.getWorld(), id);
|
||||
final Location loc = MainUtil.getPlotHome(plr.getWorld(), id);
|
||||
plr.setCompassTarget(loc);
|
||||
PlayerFunctions.sendMessage(plr, C.COMPASS_TARGET);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue