Package com.palmergames.bukkit.towny.object

Examples of com.palmergames.bukkit.towny.object.Nation.pay()


            throw new TownyException(TownySettings.getLangString("msg_neutral_disabled"));

          boolean choice = !nation.isNeutral();
          Double cost = TownySettings.getNationNeutralityCost();

          if (choice && TownySettings.isUsingEconomy() && !nation.pay(cost, "Nation Neutrality Cost"))
            throw new TownyException(TownySettings.getLangString("msg_nation_cant_neutral"));

          nation.setNeutral(choice);
          plugin.updateCache();
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.