From 830c43ced030c7aa19a6817f799e39d0b0df4c37 Mon Sep 17 00:00:00 2001 From: James Quinley Date: Tue, 15 Mar 2022 21:23:27 -0700 Subject: [PATCH] Final Release Build before friends network api --- .../jamesquinley/DelegationServices/delegationServices.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/jamesquinley/DelegationServices/delegationServices.java b/src/main/java/com/jamesquinley/DelegationServices/delegationServices.java index 2bc3170..adb32c7 100644 --- a/src/main/java/com/jamesquinley/DelegationServices/delegationServices.java +++ b/src/main/java/com/jamesquinley/DelegationServices/delegationServices.java @@ -21,7 +21,6 @@ public class delegationServices { static MongoCollection dCollection; static MongoDatabase RGFilterDB; static MongoCollection RGFilter; - public static void connectionInit (Boolean beta) { if (beta == true) @@ -69,6 +68,7 @@ public class delegationServices { static MongoClient accountGetClient = MongoClients.create(AccountSettings); static MongoDatabase accountDatabase = accountGetClient.getDatabase("account"); static MongoCollection accountS = accountDatabase.getCollection("UserPass"); + static MongoCollection FNETDOC = accountDatabase.getCollection("FNet"); static int RequestR; //still need to config public static void delegationProcesser() { @@ -115,7 +115,7 @@ public class delegationServices { System.out.println("Delegation Has Started"); - if(requesttype == 0 || requesttype == 1 || requesttype == 2 || requesttype == 3 || requesttype == 4 || requesttype == 5 || requesttype == 6 || requesttype ==7 || requesttype == 8 || requesttype ==9 || requesttype ==10 || requesttype ==11 || requesttype ==12 || requesttype == 20 || requesttype == 21) { + if(requesttype == 0 || requesttype == 1 || requesttype == 2 || requesttype == 3 || requesttype == 4 || requesttype == 5 || requesttype == 6 || requesttype ==7 || requesttype == 8 || requesttype ==9 || requesttype ==10 || requesttype ==11 || requesttype ==12 || requesttype == 20 ) { if (requesttype == 7 || requesttype == 12 || requesttype == 4 || requesttype == 5 || requesttype == 6 || requesttype == 19 ) { System.out.println("An Excluded Request (7MAL, 12S, 4C, 5C, 6C) Has Been Detected, Ignoring"); //Thinking of moving all purge timer call to here to centralize deletion decision. @@ -723,6 +723,7 @@ public class delegationServices { createForm.append("Freinds", " "); createForm.append("Token", tokenSTGEN); createForm.append("Control", 1); + createForm.append("Upgrade", 0); accountS.insertOne(createForm); BasicDBObject searchQuery = new BasicDBObject(); searchQuery.append("clientid", ClientID); @@ -830,6 +831,7 @@ public class delegationServices { } if (requesttype == 21) { + //Freinds Network Login Goes Here, Fun. } } else {