@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
  public void onBlockGrow(final BlockGrowEvent event) {
    Block b = event.getBlock();

    if (PlotManager.isPlotWorld(b)) {
      String id = PlotManager.getPlotId(b.getLocation());

      if (id.equalsIgnoreCase("")) {
        event.setCancelled(true);
      }
    }
  }
Esempio n. 2
0
 @EventHandler
 public void BlockGrowEvent(BlockGrowEvent event) {
   if (!arena.getRegion().isInside(event.getBlock().getLocation()) || arena.getEditMode()) return;
   event.setCancelled(true);
 }