Simple Server Switch Not Working

Discussion in 'BungeeCord Plugin Development' started by Ultimate, Sep 13, 2013.

  1. Code (Text):
    Caused by: org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through an unregistered channel ('BungeeCord'.
        at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:469)
        at org.bukkit.craftbukkit.v1_6_R2.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:800)
    Am I missing something?
     
  2. You need to register the channel.

    Bukkit.getServer().getMessenger().registerOutgoingChannel(Plugin, "BungeeCord");

    ^Or something like that.
     
    • Agree Agree x 1
  3. registerOutgoingPluginChannel, but close enough. Thanks!
     
  4. :p Just going off the top of my head. xD No problem!
     
    • Winner Winner x 1
  5. Hm. I set that up, no error or anything. I then try to teleport to the other server (I am sure I got it all right) and nothing happens. I would rattle off some code, but it's right off the wiki. Anything else I need to register? Do I need a plugin on the server I am trying to teleport to?