PlayerProfile profile = PlayerProfile.getProfile(player.getName());
if (!profile.hasQuest()) {
player.sendMessage(ChatColor.GRAY + "You don't have a quest at the moment.");
} else {
Bukkit.getPluginManager().callEvent(
new QuestCancelEvent(QuestManager.getQuest(profile.getProgress().getQuestName()), player));
List<Reward> abort = QuestManager.getQuest(profile.getQuest()).getAbortRewards();
if (abort != null) {
for (Reward reward : abort)
reward.grant(player, profile.getProgress().getQuesterUID());
}