Search in sources :

Example 1 with QuestProgressionEvent

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;
}
Also used : EventCaller(com.magmaguy.elitemobs.utils.EventCaller) QuestProgressionEvent(com.magmaguy.elitemobs.api.QuestProgressionEvent)

Example 2 with QuestProgressionEvent

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);
}
Also used : EventCaller(com.magmaguy.elitemobs.utils.EventCaller) QuestProgressionEvent(com.magmaguy.elitemobs.api.QuestProgressionEvent)

Aggregations

QuestProgressionEvent (com.magmaguy.elitemobs.api.QuestProgressionEvent)2 EventCaller (com.magmaguy.elitemobs.utils.EventCaller)2