mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 11:55:38 +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();
|
||||
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);
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user