Don't allow debugroadregen on merged plots

This commit is contained in:
dordsor21 2019-01-14 18:15:44 +00:00
parent 44fc8a55ea
commit 232b7ccfc1
2 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,8 @@ public class DebugRoadRegen extends SubCommand {
Plot plot = player.getCurrentPlot();
if (plot == null) {
C.NOT_IN_PLOT.send(player);
} else if (plot.isMerged()) {
C.REQUIRES_UNMERGED.send(player);
} else {
HybridPlotManager manager = (HybridPlotManager) plotArea.getPlotManager();
manager.createRoadEast(plotArea, plot);

View File

@ -184,6 +184,8 @@ public enum C {
* Area Create
*/
REQUIRES_UNMERGED("$2The plot cannot be merged", "debug"),
SET_ATTRIBUTE("$4Successfully set %s0 set to %s1", "Set"), /*
* Web
*/