Examples of CellWonEvent


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

     
      plugin.getServer().broadcastMessage(String.format(TownySettings.getLangString("msg_enemy_war_area_defended"),
          playerName,
          cell.getCellString()));
    } else if (event.getEventName().equals("CellWon")) {
      CellWonEvent cellWonEvent = (CellWonEvent)event;
      CellUnderAttack cell = cellWonEvent.getCellAttackData();
     
      TownyUniverse universe = plugin.getTownyUniverse();
      try {
        Resident resident = TownyUniverse.getDataSource().getResident(cell.getNameOfFlagOwner());
        Town town = resident.getTown();
View Full Code Here

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

    removeFlagFromPlayerCount(cell.getNameOfFlagOwner(), cell);
    cellsUnderAttack.remove(cell);
  }

  public static void attackWon(CellUnderAttack cell) {
    CellWonEvent cellWonEvent = new CellWonEvent(cell);
    Bukkit.getServer().getPluginManager().callEvent(cellWonEvent);
    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.