Hello, I have comunication Spigot <=> BungeeCord. When message arrive on bungee side, I need to know, from which server does it come. In Event PluginMessageEvent, I can get only getSender() which returns ServerConnection. I need to get ServerInfo from that. How can I?
You can cast the sender to a Server object and get the ServerInfo from that: Code (Java): public void onPluginMessage(PluginMessageEvent e) { Server server = (Server) e.getSender(); ServerInfo info = server.getInfo(); }