mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-06 00:18:39 +01:00
Password objectives separable by semicolon, fixes #1823
This commit is contained in:
parent
d80b09c64f
commit
5b0ab9c817
@ -1162,12 +1162,11 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
|
||||
final List<String> displays = (List<String>) context.getSessionData(stagePrefix
|
||||
+ CK.S_PASSWORD_DISPLAYS);
|
||||
if (displays != null) {
|
||||
displays.add(input);
|
||||
displays.addAll(Arrays.asList(input.split(Lang.get("charSemi"))));
|
||||
}
|
||||
context.setSessionData(stagePrefix + CK.S_PASSWORD_DISPLAYS, displays);
|
||||
} else {
|
||||
final List<String> displays = new LinkedList<>();
|
||||
displays.add(input);
|
||||
final List<String> displays = new LinkedList<>(Arrays.asList(input.split(Lang.get("charSemi"))));
|
||||
context.setSessionData(stagePrefix + CK.S_PASSWORD_DISPLAYS, displays);
|
||||
}
|
||||
}
|
||||
@ -1211,12 +1210,11 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
|
||||
final List<String> phrases = (List<String>) context.getSessionData(stagePrefix
|
||||
+ CK.S_PASSWORD_PHRASES);
|
||||
if (phrases != null) {
|
||||
phrases.add(input);
|
||||
phrases.addAll(Arrays.asList(input.split(Lang.get("charSemi"))));
|
||||
}
|
||||
context.setSessionData(stagePrefix + CK.S_PASSWORD_PHRASES, phrases);
|
||||
} else {
|
||||
final List<String> phrases = new LinkedList<>();
|
||||
phrases.add(input);
|
||||
final List<String> phrases = new LinkedList<>(Arrays.asList(input.split(Lang.get("charSemi"))));
|
||||
context.setSessionData(stagePrefix + CK.S_PASSWORD_PHRASES, phrases);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user