Package com.palmergames.bukkit.towny.war

Examples of com.palmergames.bukkit.towny.war.WarSpoils


      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    if (plugin.isEcoActive())
      try {
        town.payTo(town.getHoldingBalance(), new WarSpoils(), "Remove Town");
      } catch (EconomyException e) {
      }

    for (Resident resident : toSave) {
      removeResident(resident);
View Full Code Here


    deleteNation(nation);
    List<Town> toSave = new ArrayList<Town>(nation.getTowns());
    nation.clear();
    if (plugin.isEcoActive())
      try {
        nation.payTo(nation.getHoldingBalance(), new WarSpoils(), "Remove Nation");
      } catch (EconomyException e) {
      }
    universe.getNationsMap().remove(nation.getName().toLowerCase());
    // Clear accounts
    if (TownySettings.isUsingEconomy())
View Full Code Here

      try {
        double price = TownySettings.getDeathPrice();
        if (!defenderResident.canPayFromHoldings(price))
          price = defenderResident.getHoldingBalance();

        defenderResident.payTo(price, new WarSpoils(), "Death Payment");
        TownyMessaging.sendMsg(defenderPlayer, "You lost " + TownyEconomyObject.getFormattedBalance(price) + ".");
      } catch (EconomyException e) {
        TownyMessaging.sendErrorMsg(defenderPlayer, "Could not take death funds.");
      }
  }
View Full Code Here

TOP

Related Classes of com.palmergames.bukkit.towny.war.WarSpoils

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.