Package net.citizensnpcs.questers.api.events

Examples of net.citizensnpcs.questers.api.events.QuestIncrementEvent


            return;
        if (hasQuest(player)) {
            QuestProgress progress = getProfile(player.getName()).getProgress();
            if (progress.isFullyCompleted())
                return;
            QuestIncrementEvent incrementEvent = new QuestIncrementEvent(QuestManager.getQuest(progress
                    .getQuestName()), player, event);
            Bukkit.getPluginManager().callEvent(incrementEvent);
            if (incrementEvent.isCancelled())
                return;
            progress.updateProgress(player, event);
            if (progress.isStepCompleted()) {
                progress.onStepCompletion();
                progress.cycle();
View Full Code Here

TOP

Related Classes of net.citizensnpcs.questers.api.events.QuestIncrementEvent

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.