mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-10 14:33:08 +00:00
Minor fixes :D
This commit is contained in:
parent
d257ddb90d
commit
07895be660
9 changed files with 143 additions and 113 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue