Package com.palmergames.bukkit.townywar.event

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


    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

Related Classes of com.palmergames.bukkit.townywar.event.CellAttackCanceledEvent

Copyright © 2018 www.massapicom. 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.