mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Forgot about unlinking
This commit is contained in:
parent
0961671eaf
commit
e7d44d5343
@ -62,5 +62,7 @@ public abstract class PlotManager {
|
||||
public abstract boolean removeRoadSouthEast(PlotWorld plotworld, Plot plot);
|
||||
|
||||
public abstract boolean finishPlotMerge(World world, PlotWorld plotworld, ArrayList<PlotId> plotIds);
|
||||
|
||||
public abstract boolean finishPlotUnlink(World world, PlotWorld plotworld, ArrayList<PlotId> plotIds);
|
||||
|
||||
}
|
||||
|
@ -43,8 +43,7 @@ public class SetBlockFast {
|
||||
int distance = Bukkit.getViewDistance() + 1;
|
||||
for (int cx = -distance; cx < distance; cx++) {
|
||||
for (int cz = -distance; cz < distance; cz++) {
|
||||
player.getWorld().refreshChunk(player.getLocation().getChunk().getX() + cx, player.getLocation().getChunk().getZ()
|
||||
+ cz);
|
||||
player.getWorld().refreshChunk(player.getLocation().getChunk().getX() + cx, player.getLocation().getChunk().getZ() + cz);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -109,6 +109,8 @@ public class Unlink extends SubCommand {
|
||||
catch (Exception e) {
|
||||
|
||||
}
|
||||
|
||||
manager.finishPlotUnlink(world, plotworld, ids);
|
||||
|
||||
PlayerFunctions.sendMessage(plr, "&6Plots unlinked successfully!");
|
||||
return true;
|
||||
|
@ -597,4 +597,9 @@ public class DefaultPlotManager extends PlotManager {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean finishPlotUnlink(World world, PlotWorld plotworld, ArrayList<PlotId> plotIds) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user