mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
[SOON] New PlotManager hierarchy.
This commit is contained in:
parent
a8915ca870
commit
e508ac5462
@ -64,6 +64,7 @@ public class Unclaim extends SubCommand {
|
|||||||
final boolean result = PlotMain.removePlot(plr.getWorld().getName(), plot.id, true);
|
final boolean result = PlotMain.removePlot(plr.getWorld().getName(), plot.id, true);
|
||||||
if (result) {
|
if (result) {
|
||||||
DBFunc.delete(plr.getWorld().getName(), plot);
|
DBFunc.delete(plr.getWorld().getName(), plot);
|
||||||
|
// TODO set wall block
|
||||||
} else {
|
} else {
|
||||||
PlayerFunctions.sendMessage(plr, "Plot removal has been denied.");
|
PlayerFunctions.sendMessage(plr, "Plot removal has been denied.");
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.intellectualcrafters.plot.generator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A plot manager with square plots which tesselate on a square grid with the following sections: ROAD, WALL, BORDER (wall), PLOT, FLOOR (plot)
|
||||||
|
*/
|
||||||
|
public abstract class ClassicPlotManager extends SquarePlotManager {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
package com.intellectualcrafters.plot.generator;
|
||||||
|
|
||||||
|
import com.intellectualcrafters.plot.object.PlotManager;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A plot manager where plots tessellate in a grid formation symmetrical about x=z
|
||||||
|
*/
|
||||||
|
public abstract class GridPlotManager extends PlotManager {
|
||||||
|
|
||||||
|
}
|
@ -48,7 +48,7 @@ import com.intellectualcrafters.plot.util.PlotHelper;
|
|||||||
import com.intellectualcrafters.plot.util.SchematicHandler;
|
import com.intellectualcrafters.plot.util.SchematicHandler;
|
||||||
import com.intellectualcrafters.plot.util.SendChunk;
|
import com.intellectualcrafters.plot.util.SendChunk;
|
||||||
|
|
||||||
@SuppressWarnings("deprecation") public class HybridPlotManager extends PlotManager {
|
@SuppressWarnings("deprecation") public class HybridPlotManager extends ClassicPlotManager {
|
||||||
|
|
||||||
private int task;
|
private int task;
|
||||||
private static boolean UPDATE = false;
|
private static boolean UPDATE = false;
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.intellectualcrafters.plot.generator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A plot manager with a square grid layout, with square shaped plots
|
||||||
|
*/
|
||||||
|
public abstract class SquarePlotManager extends GridPlotManager {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user