mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 12:35:15 +01:00
Don't allow debugroadregen on merged plots
This commit is contained in:
parent
44fc8a55ea
commit
232b7ccfc1
@ -25,6 +25,8 @@ public class DebugRoadRegen extends SubCommand {
|
|||||||
Plot plot = player.getCurrentPlot();
|
Plot plot = player.getCurrentPlot();
|
||||||
if (plot == null) {
|
if (plot == null) {
|
||||||
C.NOT_IN_PLOT.send(player);
|
C.NOT_IN_PLOT.send(player);
|
||||||
|
} else if (plot.isMerged()) {
|
||||||
|
C.REQUIRES_UNMERGED.send(player);
|
||||||
} else {
|
} else {
|
||||||
HybridPlotManager manager = (HybridPlotManager) plotArea.getPlotManager();
|
HybridPlotManager manager = (HybridPlotManager) plotArea.getPlotManager();
|
||||||
manager.createRoadEast(plotArea, plot);
|
manager.createRoadEast(plotArea, plot);
|
||||||
|
@ -184,6 +184,8 @@ public enum C {
|
|||||||
* Area Create
|
* Area Create
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
REQUIRES_UNMERGED("$2The plot cannot be merged", "debug"),
|
||||||
|
|
||||||
SET_ATTRIBUTE("$4Successfully set %s0 set to %s1", "Set"), /*
|
SET_ATTRIBUTE("$4Successfully set %s0 set to %s1", "Set"), /*
|
||||||
* Web
|
* Web
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user