Skip to content

Commit

Permalink
i lied
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Jun 20, 2024
1 parent 81bc260 commit 862bda2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public class HytilsConfig extends Config {
category = "Chat", subcategory = "Automatic",
min = 0, max = 5
)
public static int autoGGSecondPhraseDelay = 2;
public static int autoGGSecondPhraseDelay = 1;

@Switch(
name = "Auto GL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void onMessageReceived(@NotNull ClientChatReceivedEvent event) {
if (!hasGameEnded(message)) return;
Multithreading.schedule(() -> UChat.say("/ac " + getGGMessageOne()), HytilsConfig.autoGGFirstPhraseDelay, TimeUnit.SECONDS);
if (HytilsConfig.autoGGSecondMessage)
Multithreading.schedule(() -> UChat.say("/ac " + getGGMessageTwo()), HytilsConfig.autoGGSecondPhraseDelay, TimeUnit.SECONDS);
Multithreading.schedule(() -> UChat.say("/ac " + getGGMessageTwo()), HytilsConfig.autoGGSecondPhraseDelay + HytilsConfig.autoGGFirstPhraseDelay, TimeUnit.SECONDS);
}

private boolean hasGameEnded(String message) {
Expand Down

0 comments on commit 862bda2

Please sign in to comment.