Sending a command to run on Spigot

Discussion in 'BungeeCord Plugin Development' started by Plochem, Feb 2, 2020.

  1. Hi,

    I'm attempting to send a command from Bungeecord to a Spigot server to be executed. Currently, I thought of either using ServerInfo#sendData or Sockets.

    If I'm using the first option, does the data queue still save even if I restart Bungeecord? I've seen that Bungeecord queues the data if there are no players in the Spigot server. If the answer is no, I'll use Sockets.

    This leads to my other question. Is sockets the best way to approach this or is there a better way?

  2. No, it doesn't.

    That's correct.

    Depends on what you want to do.
    If you just want to send bytes, sockets are a good choice.