aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorTrivia.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorTrivia.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorTrivia.java
index a6199c25..dcf4434a 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorTrivia.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorTrivia.java
@@ -49,11 +49,16 @@ public class RoomProcessorTrivia extends GeneralRoomProcessor {
private final List<String> questionDialog = new ArrayList<String>();
private boolean questionDialogStart = false;
+ private boolean parseDialog = false;
@Override
public void chatReceived(IChatComponent chat) {
super.chatReceived(chat);
if (!FeatureRegistry.SOLVER_KAHOOT.isEnabled()) return;
String ch2 = chat.getUnformattedText();
+ if (parseDialog) {
+ parseDialog = false;
+ parseDialog();
+ }
if (chat.getFormattedText().contains("§r§6§lQuestion ")) {
questionDialogStart = true;
questionDialog.clear();
@@ -64,7 +69,7 @@ public class RoomProcessorTrivia extends GeneralRoomProcessor {
if (chat.getFormattedText().contains("§r§6 ⓒ")) {
questionDialogStart = false;
- parseDialog();
+ parseDialog = true;
}
}
public static final Pattern anwerPattern = Pattern.compile("§r§6 . §a(.+)§r");