Search in sources :

Example 1 with QuestLeaveEvent

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

the class Quest method stopPlayerQuest.

public static void stopPlayerQuest(Player player, String questID) {
    if (PlayerData.getQuests(player.getUniqueId()) == null) {
        player.sendMessage(QuestsConfig.getLeaveWhenNoActiveQuestsExist());
        return;
    }
    QuestLeaveEvent questLeaveEvent = new QuestLeaveEvent(player, PlayerData.getQuest(player.getUniqueId(), questID));
    new EventCaller(questLeaveEvent);
}
Also used : QuestLeaveEvent(com.magmaguy.elitemobs.api.QuestLeaveEvent) EventCaller(com.magmaguy.elitemobs.utils.EventCaller)

Aggregations

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