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

MessagingChannel doesn't work properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit version git-Spigot-a85f7ec-5870145 (MC: 1.13) (Implementing API version 1.13-R0.1-SNAPSHOT)

      When I try to register a channel, I got the error message

       

      [14:32:21 ERROR]: Error occurred while enabling Core v1.0 (Is it up to date?)
      java.lang.IllegalArgumentException: Channel must contain : separator
       at org.bukkit.plugin.messaging.StandardMessenger.validateAndCorrectChannel(StandardMessenger.java:474) ~[spigot-1.13.jar:git-Spigot-a85f7ec-5870145]
       at org.bukkit.plugin.messaging.StandardMessenger.registerOutgoingPluginChannel(StandardMessenger.java:180) ~[spigot-1.13.jar:git-Spigot-a85f7ec-5870145]
       at net.risingjar.core.Core.onEnable(Core.java:32) ~[?:?]
       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot-1.13.jar:git-Spigot-a85f7ec-5870145]
       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:339)
      [spigot-1.13.jar:git-Spigot-a85f7ec-5870145]
       at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403) [spigot-1.13.jar:git-Spigot-a85f7ec-5870145]
       at org.bukkit.craftbukkit.v1_13_R1.CraftServer.enablePlugin(CraftServer.java:424) [spigot-1.13.jar:git-Spigot-a85f7ec-5870145]
       at org.bukkit.craftbukkit.v1_13_R1.CraftServer.enablePlugins(CraftServer.java:338)
      [spigot-1.13.jar:git-Spigot-a85f7ec-5870145]
       at net.minecraft.server.v1_13_R1.MinecraftServer.m(MinecraftServer.java:562) [spigot-1.13.jar:git-Spigot-a85f7ec-5870145]
       at net.minecraft.server.v1_13_R1.MinecraftServer.g_(MinecraftServer.java:524) [spigot-1.13.jar:git-Spigot-a85f7ec-5870145]
       at net.minecraft.server.v1_13_R1.MinecraftServer.a(MinecraftServer.java:423) [spigot-1.13.jar:git-Spigot-a85f7ec-5870145]
       at net.minecraft.server.v1_13_R1.DedicatedServer.init(DedicatedServer.java:288) [spigot-1.13.jar:git-Spigot-a85f7ec-5870145]
       at net.minecraft.server.v1_13_R1.MinecraftServer.run(MinecraftServer.java:686) [spigot-1.13.jar:git-Spigot-a85f7ec-5870145]
       at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]

       

      My code

      Bukkit.getServer().getMessenger().registerOutgoingPluginChannel(this, "someChannel");
      Bukkit.getServer().getMessenger().registerIncomingPluginChannel(this, "someChannel", new PluginMessageManager());
      

            Unassigned Unassigned
            PrinzKenny1 Calvin Mende
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: