aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/party
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-05-25 23:12:56 +0900
committersyeyoung <cyong06@naver.com>2021-05-25 23:12:56 +0900
commitf8ad8cce99560e8991ceca7a0937e4a144ed0937 (patch)
tree0746ff53a87802f2b8cc57230dad4bfd3619f272 /src/main/java/kr/syeyoung/dungeonsguide/party
parentc02785430249012efc7eb92a76bebe02609e8565 (diff)
downloadSkyblock-Dungeons-Guide-f8ad8cce99560e8991ceca7a0937e4a144ed0937.tar.gz
Skyblock-Dungeons-Guide-f8ad8cce99560e8991ceca7a0937e4a144ed0937.tar.bz2
Skyblock-Dungeons-Guide-f8ad8cce99560e8991ceca7a0937e4a144ed0937.zip
message broadcast and opengl error fix
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/party')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java b/src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java
index f756eb08..0368ecfc 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java
@@ -393,6 +393,12 @@ public class PartyManager implements StompMessageHandler {
if (secret.equals(askToJoinSecret) && partyID != null) {
Minecraft.getMinecraft().thePlayer.sendChatMessage("/p invite "+playerName);
}
+ } else if ("/user/queue/party.broadcast".equals(stompPayload.headers().get("destination"))) {
+ try {
+ Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: Message Broadcasted from player:: \n" + stompPayload.payload()));
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
} else {
String str = object.getString("status");
if ("success".equals(str)) {
@@ -411,5 +417,7 @@ public class PartyManager implements StompMessageHandler {
.stompMessageHandler(this).ackMode(StompSubscription.AckMode.AUTO).destination("/user/queue/party.check").build());
stompConnectedEvent.getStompInterface().subscribe(StompSubscription.builder()
.stompMessageHandler(this).ackMode(StompSubscription.AckMode.AUTO).destination("/user/queue/party.join").build());
+ stompConnectedEvent.getStompInterface().subscribe(StompSubscription.builder()
+ .stompMessageHandler(this).ackMode(StompSubscription.AckMode.AUTO).destination("/user/queue/party.broadcast").build());
}
}