Package net.citizensnpcs.questers

Examples of net.citizensnpcs.questers.QuestCancelException


    }

    @Override
    public String getStatus(ObjectiveProgress progress) throws QuestCancelException {
        if (CitizensManager.getNPC(progress.getObjective().getDestNPCID()) == null) {
            throw new QuestCancelException(ChatColor.GRAY + "Cancelling quest due to missing destination NPC.");
        }
        int amount = progress.getObjective().getAmount();
        if (progress.getObjective().getMaterial() == null || progress.getObjective().getMaterial() == Material.AIR)
            return ChatColor.GREEN + "Talking to "
                    + StringUtils.wrap(CitizensManager.getNPC(progress.getObjective().getDestNPCID()).getName()) + ".";
View Full Code Here

TOP

Related Classes of net.citizensnpcs.questers.QuestCancelException

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.