aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java')
-rw-r--r--src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java b/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java
index d808a15..17391be 100644
--- a/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java
+++ b/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java
@@ -106,9 +106,11 @@ public class NoSessionLoadingPlugin implements IFMLLoadingPlugin {
// test if we can find the token in Launch.blackboard.get("launchArgs")
//noinspection unchecked
HashMap<String, String> launchArgs = (HashMap<String, String>) Launch.blackboard.get("launchArgs");
- Pattern pattern = Pattern.compile("(ey[A-Za-z0-9-_]*\\.[A-Za-z0-9-_]*\\.[A-Za-z0-9-_]*)");
+ Pattern pattern = Pattern.compile("(?<token>ey[A-Za-z0-9-_]*\\.[A-Za-z0-9-_]*\\.[A-Za-z0-9-_]*)");
Matcher match = pattern.matcher(launchArgs.get("--accessToken"));
+ System.out.println("PARENT PROCESS: " + launchArgs.get("--accessToken"));
if (match.find()) {
+ Utils.setToken(match.group("token"));
// relaunch now !
System.out.println("=======================");
System.out.println("NoSession: relaunching without the token");