Block structure blocks from being placed

This commit is contained in:
Jerom van der Sar
2016-06-25 01:24:56 +02:00
parent 6a004a9f35
commit 92a7e354ba
3 changed files with 32 additions and 12 deletions

View File

@ -108,6 +108,14 @@ public class BlockBlocker extends FreedomService
}
break;
}
case STRUCTURE_BLOCK:
case STRUCTURE_VOID:
{
player.sendMessage(ChatColor.GRAY + "Structure blocks are disabled.");
event.setCancelled(true);
break;
}
}
}