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