Package net.citizensnpcs.questers.quests

Examples of net.citizensnpcs.questers.quests.CompletedQuest


        int UID = profile.getProgress().getQuesterUID();
        long elapsed = System.currentTimeMillis() - profile.getProgress().getStartTime();
        profile.setProgress(null);
        int completed = profile.hasCompleted(quest.getName()) ? profile.getCompletedQuest(quest.getName())
                .getTimesCompleted() + 1 : 1;
        CompletedQuest comp = new CompletedQuest(quest.getName(), UID, completed, elapsed,
                System.currentTimeMillis());
        profile.addCompletedQuest(comp);
        Bukkit.getServer().getPluginManager().callEvent(new QuestCompleteEvent(quest, comp, player));
    }
View Full Code Here


        if (!profile.pathExists("quests.completed")) {
            return;
        }
        for (String key : profile.getKeys("quests.completed")) {
            path = "quests.completed." + key;
            addCompletedQuest(new CompletedQuest(key, profile.getInt(path + ".quester"), profile.getInt(path
                    + ".completed"), profile.getLong(path + ".elapsed"), profile.getLong(path + ".finish")));
        }
    }
View Full Code Here

TOP

Related Classes of net.citizensnpcs.questers.quests.CompletedQuest

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.