Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7639

Incoming plugin channels not working in 1.20.5

XMLWordPrintable

    • 4122-Spigot-b698b49-661afb4 (MC: 1.20.5) (Implementing API version 1.20.5-R0.1-SNAPSHOT)
    • Simple Voice Chat
    • Yes

      Since version 1.20.5 Bukkit.getMessenger().registerIncomingPluginChannel does not seem to work anymore.
      The same code has worked since Minecraft version 1.12.2.

      Minimal reproducible example:

      public final class TestPlugin extends JavaPlugin {
      
          public static final String PLUGIN_ID = "channeltest";
          public static final Logger LOGGER = LogManager.getLogger(PLUGIN_ID);
      
          @Override
          public void onEnable() {
              Bukkit.getMessenger().registerIncomingPluginChannel(this, "voicechat:request_secret", (s, player, bytes) -> {
                  LOGGER.info("RECEIVED PACKET");
              });
          }
      
          @Override
          public void onDisable() {
      
          }
      } 

      The same thing also happens when using CraftBukkit.

      Please let me know if you need any more information.

            Unassigned Unassigned
            henkelmax Max Henkel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: