diff options
author | syeyoung <cyong06@naver.com> | 2021-05-25 23:12:56 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-05-25 23:12:56 +0900 |
commit | f8ad8cce99560e8991ceca7a0937e4a144ed0937 (patch) | |
tree | 0746ff53a87802f2b8cc57230dad4bfd3619f272 /src/main/java/kr/syeyoung/dungeonsguide/commands | |
parent | c02785430249012efc7eb92a76bebe02609e8565 (diff) | |
download | Skyblock-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/commands')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java index 5a7a34b7..47a2f4e1 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java @@ -364,6 +364,13 @@ public class CommandDungeonsGuide extends CommandBase { cosmeticsManager.requestCosmeticsList(); cosmeticsManager.requestActiveCosmetics(); sender.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: §fSuccessfully purged API Cache!")); + } else if (args[0].equals("pbroadcast")) { + try { + String[] payload = new String[args.length - 1]; + System.arraycopy(args, 1, payload, 0, payload.length); + String actualPayload = String.join(" ", payload).replace("$C$", "§"); + DungeonsGuide.getDungeonsGuide().getStompConnection().send(new StompPayload().header("destination", "/queue/party.broadcast").payload(actualPayload)); + } catch (Exception e) {e.printStackTrace();} } 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")); |