Started Update (Unstable)

This commit is contained in:
Blackvein 2014-03-04 07:33:13 -08:00
parent c75ecb71f2
commit 7722ccead4
2 changed files with 9 additions and 1 deletions

View File

@ -88,6 +88,7 @@ import java.net.URLClassLoader;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.sql.Date;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
@ -3279,6 +3280,13 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
List<String> phrases = config.getStringList("quests." + s + ".stages.ordered." + s2 + ".password-phrases");
if(displays.size() == phrases.size()) {
for(int index = 0; index < displays.size(); index++){
oStage.passwordDisplays.add(displays.get(index));
LinkedList<String> answers = new LinkedList<String>();
answers.addAll(Arrays.asList(phrases.get(index).split("")));
}
oStage.passwordDisplays.addAll(displays);
oStage.passwordPhrases.addAll(phrases);

View File

@ -118,7 +118,7 @@ public class Stage {
public LinkedList<String> customObjectiveDisplays = new LinkedList<String>();
public LinkedList<Map<String, Object>> customObjectiveData = new LinkedList<Map<String, Object>>();
public LinkedList<String> passwordDisplays = new LinkedList<String>();
public LinkedList<String> passwordPhrases = new LinkedList<String>();
public LinkedList<LinkedList<String>> passwordPhrases = new LinkedList<LinkedList<String>>();
public String script;
public Event startEvent = null;
public Event deathEvent = null;