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