예제 #1
0
  @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);
      }
    }
  }
예제 #2
0
 @EventHandler
 public void BlockGrowEvent(BlockGrowEvent event) {
   if (!arena.getRegion().isInside(event.getBlock().getLocation()) || arena.getEditMode()) return;
   event.setCancelled(true);
 }