*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.io.File;
import java.util.*; import java.util.*;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.logging.Level;
import me.ThaH3lper.com.LoadBosses.LoadBoss; import me.ThaH3lper.com.LoadBosses.LoadBoss;
import me.blackvein.quests.util.ItemUtil; import me.blackvein.quests.util.ItemUtil;
import net.citizensnpcs.api.CitizensAPI; import net.citizensnpcs.api.CitizensAPI;
@ -2071,7 +2073,14 @@ 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; currentQuest = quest;
currentStage = stage; currentStage = stage;

File diff suppressed because it is too large Load Diff