1.8.8 Help with the Plugin Message Listener

Discussion in 'Spigot Plugin Development' started by retrooper, Mar 19, 2020.

  1. I am new with the Bukkit & Bungee plugin listener.
    I am trying to add bungee support to my spigot plugin.
    I want to message players (on all bungee servers) that have a certain permission.
    I know you can send a specific player a message,
    Code (Text):

    out.writeUTF(ChatColor.RED + "Congrats, you just won 1$!");
    You can send a message to all players.
    Code (Text):

    out.writeUTF(ChatColor.RED + "Congrats, you just won 1$!");
    But how do you send a message to all players with a given permission?
    #1 retrooper, Mar 19, 2020
    Last edited: Mar 19, 2020
  2. SteelPhoenix


    You don't. You'd have to make your own proxy sided plugin to handle that.
  3. Is it not possible?
    For example sending a message to all staff around all servers?
  4. What do I do then?
    I don't know how to make one.
  5. It's certainly possible, but you'd need a Bungeecord plugin listening for your plugin message with a custom subchannel. It should be possible with just a Bungee plugin, but then no-Bungee servers would be out of luck since they'd need a Spigot/Bukkit plugin. It's even possible to make it a Bukkit and Bungee plugin in one jar, but that's another can of worms.