*Fix for player-data when stage=null

This commit is contained in:
Zino 2013-08-06 18:00:05 +02:00
parent 31df651edc
commit cfb567f59c
2 changed files with 4266 additions and 4257 deletions

View File

@ -3,6 +3,8 @@ package me.blackvein.quests;
import java.io.File;
import java.util.*;
import java.util.Map.Entry;
import java.util.logging.Level;
import me.ThaH3lper.com.LoadBosses.LoadBoss;
import me.blackvein.quests.util.ItemUtil;
import net.citizensnpcs.api.CitizensAPI;
@ -2072,6 +2074,13 @@ public class Quester {
}
if (stage == null) {
currentQuest = quest;
currentQuest.completeQuest(this);
Quests.log.log(Level.SEVERE, "[Quests] Invalid stage for player: \"" + name + "\". Quest ended.");
return true;
}
currentQuest = quest;
currentStage = stage;

View File

@ -222,8 +222,8 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
loadEvents();
log.log(Level.INFO, "[Quests] " + quests.size() + " Quest(s) loaded.");
log.log(Level.INFO, "[Quests] " + events.size() + " Event(s) loaded.");
questers.putAll(getOnlineQuesters());
if (snoop) {
questers.putAll(getOnlineQuesters());
snoop();
}
}