mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +01:00
Started Update (Unstable)
This commit is contained in:
parent
c75ecb71f2
commit
7722ccead4
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user