diff options
author | syeyoung <cyong06@naver.com> | 2021-08-11 15:43:43 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-08-11 15:43:43 +0900 |
commit | 21ec99c3e45e4557e228d026c148207b1227c14b (patch) | |
tree | 6b9972492da511c351cc07a9d215dd3b0ab77def /src/main/java/kr/syeyoung/dungeonsguide/commands | |
parent | a48cb5c96e16fae589cb7d4f09146a17b3787924 (diff) | |
download | Skyblock-Dungeons-Guide-21ec99c3e45e4557e228d026c148207b1227c14b.tar.gz Skyblock-Dungeons-Guide-21ec99c3e45e4557e228d026c148207b1227c14b.tar.bz2 Skyblock-Dungeons-Guide-21ec99c3e45e4557e228d026c148207b1227c14b.zip |
- X Started playing skyblock alarm
- Better Scrollbar
- Modal Message
- Inviting Friends in discord
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/commands')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java index d7759f92..85fa3d3f 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java @@ -19,7 +19,10 @@ package kr.syeyoung.dungeonsguide.commands; import com.google.gson.JsonObject; +import com.sun.jna.Pointer; import kr.syeyoung.dungeonsguide.DungeonsGuide; +import kr.syeyoung.dungeonsguide.gamesdk.jna.enumuration.EDiscordActivityActionType; +import kr.syeyoung.dungeonsguide.gamesdk.jna.interfacestruct.IDiscordOverlayManager; import kr.syeyoung.dungeonsguide.rpc.JDiscordRelation; import kr.syeyoung.dungeonsguide.rpc.RichPresenceManager; import kr.syeyoung.dungeonsguide.SkyblockStatus; @@ -539,9 +542,10 @@ public class CommandDungeonsGuide extends CommandBase { System.out.println(stringBuilder.toString()); System.out.println(stringBuilder2.toString()); } else if (args[0].equals("IDKTEST")) { - for (Map.Entry<Long, JDiscordRelation> longJDiscordRelationEntry : RichPresenceManager.INSTANCE.getRelationMap().entrySet()) { - System.out.println(longJDiscordRelationEntry.getValue()); - } + IDiscordOverlayManager iDiscordOverlayManager = RichPresenceManager.INSTANCE.getIDiscordCore().GetOverlayManager.getOverlayManager(RichPresenceManager.INSTANCE.getIDiscordCore()); + iDiscordOverlayManager.OpenActivityInvite.openActivityInvite(iDiscordOverlayManager, EDiscordActivityActionType.DiscordActivityActionType_Join, Pointer.NULL, (callbackData, result) -> { + + }); } else{ sender.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: §e/dg §7-§fOpens configuration gui")); sender.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: §e/dg gui §7-§fOpens configuration gui")); |