From eeaa2e98d0eade09d86621be6f511bff0f5e3993 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Mon, 29 Jun 2020 11:28:55 -0400 Subject: [PATCH] Update RPC game joined regex. (closes #80) --- app/assets/js/scripts/landing.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/js/scripts/landing.js b/app/assets/js/scripts/landing.js index c19f0b67..7ea1f2d5 100644 --- a/app/assets/js/scripts/landing.js +++ b/app/assets/js/scripts/landing.js @@ -465,8 +465,9 @@ let proc // Is DiscordRPC enabled let hasRPC = false // Joined server regex +// Change this if your server uses something different. const SERVER_JOINED_REGEX = /\[.+\]: \[CHAT\] [a-zA-Z0-9_]{1,16} joined the game/ -const GAME_JOINED_REGEX = /\[.+\]: Skipping bad option: lastServer:/ +const GAME_JOINED_REGEX = /\[.+\]: Sound engine started/ const GAME_LAUNCH_REGEX = /^\[.+\]: (?:MinecraftForge .+ Initialized|ModLauncher .+ starting: .+)$/ const MIN_LINGER = 5000