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);
}
Aggregations