aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-03-06 21:08:53 +0900
committersyeyoung <cyong06@naver.com>2021-03-06 21:08:53 +0900
commit1da442fd77d241f563f1a57dc88ab04cc4c3cbb4 (patch)
tree4ba9aa45525bb123321676e8a74cf0dc4e0303ef /src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java
parent778909720ab8bb99afb48d57a9da07ab20a6f4ce (diff)
downloadSkyblock-Dungeons-Guide-1da442fd77d241f563f1a57dc88ab04cc4c3cbb4.tar.gz
Skyblock-Dungeons-Guide-1da442fd77d241f563f1a57dc88ab04cc4c3cbb4.tar.bz2
Skyblock-Dungeons-Guide-1da442fd77d241f563f1a57dc88ab04cc4c3cbb4.zip
BREH
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java b/src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java
index 0d11a8f2..fd72e758 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java
@@ -36,7 +36,7 @@ public class RichPresenceManager implements Runnable {
}).setJoinRequestEventHandler(request -> {
PartyJoinRequest partyJoinRequest = new PartyJoinRequest();
partyJoinRequest.setDiscordUser(request);
- partyJoinRequest.setTime(Instant.now());
+ partyJoinRequest.setExpire(System.currentTimeMillis() + 30000);
PartyInviteViewer.INSTANCE.joinRequests.add(partyJoinRequest);
}).setJoinGameEventHandler(joinSecret -> {
@@ -61,7 +61,7 @@ public class RichPresenceManager implements Runnable {
} else {
DiscordRichPresence.Builder richPresenceBuilder = new DiscordRichPresence.Builder(skyblockStatus.getDungeonName());
richPresenceBuilder.setBigImage("mort", "mort")
- .setParty(PartyManager.INSTANCE.getPartyID(), 1, 5);
+ .setParty(PartyManager.INSTANCE.getPartyID(), PartyManager.INSTANCE.getMemberCount(), 5);
if (skyblockStatus.getContext() != null) {
long init = skyblockStatus.getContext().getInit();
@@ -99,7 +99,7 @@ public class RichPresenceManager implements Runnable {
lastLoc = skyblockStatus.getDungeonName()+"";
}
updatePresence();
- Thread.sleep(1000L);
+ Thread.sleep(300L);
} catch (Exception e) {e.printStackTrace();}
}
}