From b34b217f44c0c5ae7e69a4d7b830a8607f5fc13a Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sat, 8 May 2021 17:23:08 +0900 Subject: cosmetics. --- .../syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/commands') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java index ff86b083..fdb4da18 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java @@ -34,6 +34,7 @@ import kr.syeyoung.dungeonsguide.features.impl.party.playerpreview.FeatureViewPl import kr.syeyoung.dungeonsguide.features.impl.party.api.ApiFetchur; import kr.syeyoung.dungeonsguide.party.PartyManager; import kr.syeyoung.dungeonsguide.roomprocessor.GeneralRoomProcessor; +import kr.syeyoung.dungeonsguide.stomp.*; import kr.syeyoung.dungeonsguide.utils.AhUtils; import kr.syeyoung.dungeonsguide.utils.MapUtils; import net.minecraft.client.Minecraft; @@ -357,6 +358,15 @@ public class CommandDungeonsGuide extends CommandBase { } else if (args[0].equals("purge")) { ApiFetchur.purgeCache(); sender.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: §fSuccessfully purged API Cache!")); + } else if (args[0].equals("send")) { + DungeonsGuide.getDungeonsGuide().getStompConnection().send(new StompPayload().header("destination", args[1]).method(StompHeader.SEND).payload(args[2])); + } else if (args[0].equals("subscribe")) { + DungeonsGuide.getDungeonsGuide().getStompConnection().subscribe(StompSubscription.builder().destination(args[1]).ackMode(StompSubscription.AckMode.AUTO).stompMessageHandler(new StompMessageHandler() { + @Override + public void handle(StompInterface stompInterface, StompPayload stompPayload) { + + } + }).build()); } 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")); -- cgit