mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-10 06:23:14 +00:00
More changes
This commit is contained in:
parent
d227bcc739
commit
fde378c965
96 changed files with 3323 additions and 1354 deletions
|
@ -23,7 +23,7 @@ package com.intellectualcrafters.plot.commands;
|
|||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.intellectualcrafters.plot.PlotMain;
|
||||
import com.intellectualcrafters.plot.PlotSquared;
|
||||
import com.intellectualcrafters.plot.config.C;
|
||||
import com.intellectualcrafters.plot.object.Plot;
|
||||
import com.intellectualcrafters.plot.util.PlayerFunctions;
|
||||
|
@ -39,7 +39,7 @@ public class Home extends SubCommand {
|
|||
}
|
||||
|
||||
private Plot isAlias(final String a) {
|
||||
for (final Plot p : PlotMain.getPlots()) {
|
||||
for (final Plot p : PlotSquared.getPlots()) {
|
||||
if ((p.settings.getAlias().length() > 0) && p.settings.getAlias().equalsIgnoreCase(a)) {
|
||||
return p;
|
||||
}
|
||||
|
@ -49,9 +49,9 @@ public class Home extends SubCommand {
|
|||
|
||||
@Override
|
||||
public boolean execute(final Player plr, String... args) {
|
||||
final Plot[] plots = PlotMain.getPlots(plr).toArray(new Plot[0]);
|
||||
final Plot[] plots = PlotSquared.getPlots(plr).toArray(new Plot[0]);
|
||||
if (plots.length == 1) {
|
||||
PlotMain.teleportPlayer(plr, plr.getLocation(), plots[0]);
|
||||
PlotSquared.teleportPlayer(plr, plr.getLocation(), plots[0]);
|
||||
return true;
|
||||
} else if (plots.length > 1) {
|
||||
if (args.length < 1) {
|
||||
|
@ -88,7 +88,7 @@ public class Home extends SubCommand {
|
|||
}
|
||||
|
||||
public void teleportPlayer(Player player, Plot plot) {
|
||||
PlotMain.teleportPlayer(player, player.getLocation(), plot);
|
||||
PlotSquared.teleportPlayer(player, player.getLocation(), plot);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue