Search in sources :

Example 1 with QuestObjectivesCompletedEvent

use of com.magmaguy.elitemobs.api.QuestObjectivesCompletedEvent in project EliteMobs by MagmaGuy.

the class QuestObjectives method updateQuestStatus.

public void updateQuestStatus(UUID playerUUID) {
    // This would in theory only be possible for quests that display the "completed" status, but should still be inaccessible in theory.
    if (turnedIn)
        return;
    if (over)
        return;
    if (!isOver())
        return;
    over = true;
    QuestObjectivesCompletedEvent questObjectivesCompletedEvent = new QuestObjectivesCompletedEvent(Bukkit.getPlayer(playerUUID), quest);
    new EventCaller(questObjectivesCompletedEvent);
}
Also used : EventCaller(com.magmaguy.elitemobs.utils.EventCaller) QuestObjectivesCompletedEvent(com.magmaguy.elitemobs.api.QuestObjectivesCompletedEvent)

Aggregations

QuestObjectivesCompletedEvent (com.magmaguy.elitemobs.api.QuestObjectivesCompletedEvent)1 EventCaller (com.magmaguy.elitemobs.utils.EventCaller)1