Examples of TownyException


Examples of com.palmergames.bukkit.towny.TownyException

      try {
        resident = TownyUniverse.getDataSource().getResident(player.getName());
        nation = resident.getTown().getNation();
        if (!resident.isKing())
          if (!nation.hasAssistant(resident))
            throw new TownyException(TownySettings.getLangString("msg_not_king_ass"));
      } catch (TownyException x) {
        TownyMessaging.sendErrorMsg(player, x.getMessage());
        return;
      }
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.