diff options
author | syeyoung <cyong06@naver.com> | 2021-08-28 11:42:27 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-08-28 11:42:27 +0900 |
commit | b1fb471d6e8ac2619068f4aff8c8ff0a2f125d15 (patch) | |
tree | dbdd03970963cdac7690305bd8b29cd5fc1e1c87 /src/main/java/kr/syeyoung/dungeonsguide/party | |
parent | 9a1c94a32122e7ec5cad922208bc8d267b41a8b3 (diff) | |
download | Skyblock-Dungeons-Guide-b1fb471d6e8ac2619068f4aff8c8ff0a2f125d15.tar.gz Skyblock-Dungeons-Guide-b1fb471d6e8ac2619068f4aff8c8ff0a2f125d15.tar.bz2 Skyblock-Dungeons-Guide-b1fb471d6e8ac2619068f4aff8c8ff0a2f125d15.zip |
- Option to disable GameSDK
- Fix disable reparty not working
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/party')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java b/src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java index 3ac637c9..fdeab870 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java @@ -114,10 +114,8 @@ public class PartyManager implements StompMessageHandler { this.partyID = partyID; this.askToJoinSecret = null; - if (allowAskToJoin) { + if (allowAskToJoin && RichPresenceManager.INSTANCE.getLastSetupCode() != -9999) { generateNewAskToJoinSecret(); - } else { - RichPresenceManager.INSTANCE.updatePresence(); } } @@ -137,7 +135,6 @@ public class PartyManager implements StompMessageHandler { StompInterface stompInterface = DungeonsGuide.getDungeonsGuide().getStompConnection(); stompInterface.send(new StompPayload().payload(new JSONObject().put("secret", askToJoinSecret).toString()).header("destination", "/app/party.setjoinsecret")); - RichPresenceManager.INSTANCE.updatePresence(); } private int partyJoin =0; @@ -284,7 +281,6 @@ public class PartyManager implements StompMessageHandler { canInvite = false; allowAskToJoin = false; askToJoinSecret = ""; - RichPresenceManager.INSTANCE.updatePresence(); } else if (str.equals("§cCouldn't find a player with that name!§r")) { canInvite = true; if (invitedDash > 0) invitedDash = 3; @@ -299,7 +295,6 @@ public class PartyManager implements StompMessageHandler { canInvite = false; allowAskToJoin = false; askToJoinSecret = ""; - RichPresenceManager.INSTANCE.updatePresence(); sendChat.add(new Tuple<>("/p invite -", () -> {invitedDash = 1;})); } else if (str.endsWith("§r§eto Party Moderator§r")) { // §b[MVP§r§f+§r§b] apotato321§r§e has promoted §r§a[VIP§r§6+§r§a] syeyoung §r§eto Party Moderator§r |