sendPluginMessage without player

Discussion in 'Plugin Development' started by Maximvdw, Feb 1, 2014.

Thread Status:
Not open for further replies.
  1. Offline


    Dear developers,

    I usually use player.sendPluginMessage to send messages to other plugins (bungee).
    But how would I send a message when I have no player instance?

    BTW: I don't want to rely on having players online

    Best Regards,


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jun 6, 2016
  2. Offline


    Cant you do like Bukkit.getServer().sendPluginMessage();
    or event.sendPluginMessage(); ?
  3. Offline


    ah ty :) How could I miss that
  4. Offline


  5. Offline


    well my goal is to use it to send data to BungeeCord proxy server. But I actually want to use the serverConnection to send the package instead of the playerConnection.
  6. Offline


    BungeeCord not supported here
  7. Offline


    I know its not, but that was just as information. I have other implementations without bungeecord (from plugin to other plugin when no players offline)
  8. Offline


    Since you want to "forward" a packet this has to be done client to server side (using plugin channels). There is no implementation that does client to server1 to server2 to client since this code is in the client. The server does not do so much as you might think.
  9. Offline


    Maximvdw Alternativly you could contact the other plugin/server by setting up your own connection via java sockets or similar.
Thread Status:
Not open for further replies.

Share This Page