Examples of CellAttackCanceledEvent


Examples of com.palmergames.bukkit.townywar.event.CellAttackCanceledEvent

      } catch (NotRegisteredException e) {
        e.printStackTrace();
      }
    } else if (event.getEventName().equals("CellAttackCanceled")) {
      System.out.println("CellAttackCanceled");
      CellAttackCanceledEvent cancelCellAttackerEvent = (CellAttackCanceledEvent)event;
      CellUnderAttack cell = cancelCellAttackerEvent.getCell();
     
      TownyUniverse universe = plugin.getTownyUniverse();
      try {
        TownyWorld world = TownyUniverse.getDataSource().getWorld(cell.getWorldName());
        WorldCoord worldCoord = new WorldCoord(world, cell.getX(), cell.getZ());
View Full Code Here

Examples of com.palmergames.bukkit.townywar.event.CellAttackCanceledEvent

    cell.cancel();
    removeCellUnderAttack(cell);
  }
 
  public static void attackCanceled(CellUnderAttack cell) {
    CellAttackCanceledEvent cellAttackCanceledEvent = new CellAttackCanceledEvent(cell);
    Bukkit.getServer().getPluginManager().callEvent(cellAttackCanceledEvent);
    cell.cancel();
    removeCellUnderAttack(cell);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.