mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-22 09:08:05 +01:00
*Fix for player-data when stage=null
This commit is contained in:
parent
31df651edc
commit
cfb567f59c
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user