sendPluginMessage without player

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

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

    Maximvdw

    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,
    Maximvdw

    bump*

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

    Areoace

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

    Maximvdw

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

    Maximvdw

  5. Offline

    Maximvdw

    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

    RawCode

    BungeeCord not supported here
     
  7. Offline

    Maximvdw

    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

    lycano

    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

    blablubbabc

    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