Examples of WarSpoils


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

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

    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

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

      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
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.