use of com.magmaguy.elitemobs.utils.EventCaller in project EliteMobs by MagmaGuy.
the class Objective method progressObjective.
public void progressObjective(QuestObjectives questObjectives) {
currentAmount++;
if (currentAmount >= targetAmount)
objectiveCompleted = true;
QuestProgressionEvent questProgressionEvent = new QuestProgressionEvent(Bukkit.getPlayer(questObjectives.getQuest().getPlayerUUID()), questObjectives.getQuest(), this);
new EventCaller(questProgressionEvent);
}
use of com.magmaguy.elitemobs.utils.EventCaller 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