From 0fd86300aca099e6747885e23fab7abe1f61ef4e Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 14 Mar 2024 12:18:27 +0100 Subject: [PATCH] Passthrough sw:hotkeys, add optifine brand Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/listeners/PluginMessage.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/steamwar/bungeecore/listeners/PluginMessage.java b/src/de/steamwar/bungeecore/listeners/PluginMessage.java index 64e7059..bde76b1 100644 --- a/src/de/steamwar/bungeecore/listeners/PluginMessage.java +++ b/src/de/steamwar/bungeecore/listeners/PluginMessage.java @@ -72,6 +72,7 @@ public class PluginMessage extends BasicListener { knownBrands.add("vanilla"); knownBrands.add("fabric"); knownBrands.add("forge"); //Forge registers all channels the server registers + knownBrands.add("optifine"); knownChannels.add("fabric:container/open"); knownChannels.add("fabric:registry/sync/direct"); @@ -103,6 +104,7 @@ public class PluginMessage extends BasicListener { register("minecraft:brand", false, directional(this::steamWarBrand, this::userBrand)); register("sw:bridge", false, directional(onlySWSource(async(event -> NetworkPacket.handle(new ServerMetaInfo(((Server) event.getSender()).getInfo()), event.getData()))), UNKNOWN)); + register("sw:hotkeys", false, directional(UNKNOWN, PASS_THROUGH)); register("worldedit:cui", false, PASS_THROUGH); register("fabricmodsender:mods", true, directional(UNKNOWN, fabricModSender::handlePluginMessage));