Minor fixes :D

This commit is contained in:
Sauilitired 2014-11-16 09:56:42 +01:00
parent d257ddb90d
commit 07895be660
9 changed files with 143 additions and 113 deletions

View file

@ -29,8 +29,11 @@ import org.bukkit.block.Block;
import java.util.HashMap;
/**
* Created by Citymonstret on 2014-10-12.
* Created 2014-10-12 for PlotSquared
*
* @author Citymonstret
*/
@SuppressWarnings("deprecation")
public class PlotSelection {
public static HashMap<String, PlotSelection> currentSelection = new HashMap<>();
@ -68,18 +71,6 @@ public class PlotSelection {
// Yay :D
}
public PlotBlock[] getBlocks() {
return this.plotBlocks;
}
public int getWidth() {
return this.width;
}
public Plot getPlot() {
return this.plot;
}
public static boolean swap(final World world, final PlotId id1, final PlotId id2) {
final Location bot2 = PlotHelper.getPlotBottomLocAbs(world, id2).add(1, 0, 1);
@ -133,6 +124,18 @@ public class PlotSelection {
return new BlockWrapper(block.getX(), block.getY(), block.getZ(), (short) block.getTypeId(), block.getData());
}
public PlotBlock[] getBlocks() {
return this.plotBlocks;
}
public int getWidth() {
return this.width;
}
public Plot getPlot() {
return this.plot;
}
public void paste(final World world, final Plot plot) {
final Location bot = PlotHelper.getPlotBottomLocAbs(world, plot.getId()), top = PlotHelper.getPlotTopLocAbs(world, plot.getId());