PluginMessage without player online?

Discussion in 'BungeeCord Plugin Development' started by Jalau, May 24, 2015.

  1. Would it be possible to use plugin messages without a player online on the sending server? Like creating a fake player with localhost connection? Yes I know there are sockets but that would require a new system for my servers and the plugin message thingy is easier to use and already setup.
    Would that work? Because I want to send a message to all staff members when a server shuts down and starts and atleast on the startup there is no one online.
  2. pluginmessage need one player for it to work, you need sockets
  3. I know that but how about creating a fake player? Would that work?
  4. i never looked, but will be much harder than using sockets
  5. Unless this fake player is created either on bungee, or through an executing script outside of the server (like a bot) then no. Creating a fake player on the specified server wouldn't work as it has no touch with the bungee side. You could however create a bot, that is just always online, and then it uses that bot as your plugin message sender. But then now you are designing a bot, which if getting the messages across are really something that important, you should probably be using sockets instead.
  6. Hmm okay, I'll look into them then. Thanks for your help ;)