mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
This commit is contained in:
parent
240362a16d
commit
ab121c7eee
@ -425,26 +425,28 @@ public class BlockEventListener implements Listener {
|
|||||||
if (plot == null) {
|
if (plot == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
switch (event.getSource().getType()) {
|
switch (event.getSource().getType().toString()) {
|
||||||
case GRASS_BLOCK:
|
case "GRASS_BLOCK":
|
||||||
if (!plot.getFlag(GrassGrowFlag.class)) {
|
if (!plot.getFlag(GrassGrowFlag.class)) {
|
||||||
plot.debug("Grass could not grow because grass-grow = false");
|
plot.debug("Grass could not grow because grass-grow = false");
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MYCELIUM:
|
case "MYCELIUM":
|
||||||
if (!plot.getFlag(MycelGrowFlag.class)) {
|
if (!plot.getFlag(MycelGrowFlag.class)) {
|
||||||
plot.debug("Mycelium could not grow because mycel-grow = false");
|
plot.debug("Mycelium could not grow because mycel-grow = false");
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case VINE:
|
case "WEEPING_VINES":
|
||||||
|
case "TWISTING_VINES":
|
||||||
|
case "VINE":
|
||||||
if (!plot.getFlag(VineGrowFlag.class)) {
|
if (!plot.getFlag(VineGrowFlag.class)) {
|
||||||
plot.debug("Vine could not grow because vine-grow = false");
|
plot.debug("Vine could not grow because vine-grow = false");
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case KELP:
|
case "KELP":
|
||||||
if (!plot.getFlag(KelpGrowFlag.class)) {
|
if (!plot.getFlag(KelpGrowFlag.class)) {
|
||||||
plot.debug("Kelp could not grow because kelp-grow = false");
|
plot.debug("Kelp could not grow because kelp-grow = false");
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user