From 7722ccead4cae0d703e432e41283606024f4f43e Mon Sep 17 00:00:00 2001 From: Blackvein Date: Tue, 4 Mar 2014 07:33:13 -0800 Subject: [PATCH] Started Update (Unstable) --- src/main/java/me/blackvein/quests/Quests.java | 8 ++++++++ src/main/java/me/blackvein/quests/Stage.java | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/blackvein/quests/Quests.java b/src/main/java/me/blackvein/quests/Quests.java index 22a689883..f38be0605 100644 --- a/src/main/java/me/blackvein/quests/Quests.java +++ b/src/main/java/me/blackvein/quests/Quests.java @@ -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 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 answers = new LinkedList(); + answers.addAll(Arrays.asList(phrases.get(index).split(""))); + + } oStage.passwordDisplays.addAll(displays); oStage.passwordPhrases.addAll(phrases); diff --git a/src/main/java/me/blackvein/quests/Stage.java b/src/main/java/me/blackvein/quests/Stage.java index 0ecbe708a..96d2d4b14 100644 --- a/src/main/java/me/blackvein/quests/Stage.java +++ b/src/main/java/me/blackvein/quests/Stage.java @@ -118,7 +118,7 @@ public class Stage { public LinkedList customObjectiveDisplays = new LinkedList(); public LinkedList> customObjectiveData = new LinkedList>(); public LinkedList passwordDisplays = new LinkedList(); - public LinkedList passwordPhrases = new LinkedList(); + public LinkedList> passwordPhrases = new LinkedList>(); public String script; public Event startEvent = null; public Event deathEvent = null;