Bungee support
sending messages across servers- see https://github.com/DenizenScript/Denizen-For-Bukkit/issues/864
I picture something like an event command clone, except it sends to whichever server you choose (or list of servers) instead of the current server.
so are you talking simple command relay, or a full on bridge?
Using BungeeCord's plugin messgaing API to forward commands (http://www.spigotmc.org/wiki/bukkit-bungee-plugin-messaging-channel/#forward) to different servers _requires_ a player to be online. Only way around that would be if Denizen created a fake "player" that would able to execute commands.
A workaround is to have Bukkit and BungeeCord hook into a Redis server like ExecuteEverywhere does. (https://github.com/vemacs/ExecuteEverywhere)
OR a dedicated bungee denizen/citizens2 plugin for the bungee server
On Mon, Nov 24, 2014 at 10:15 PM, OzOwnz [email protected] wrote:
Using BungeeCord's plugin messgaing API to forward commands ( http://www.spigotmc.org/wiki/bukkit-bungee-plugin-messaging-channel/#forward) to different servers requires a player to be online. Only way around that would be if Denizen created a fake "player" that would able to execute commands.
A workaround is to have Bukkit and BungeeCord hook into a Redis server like ExecuteEverywhere does. (https://github.com/vemacs/ExecuteEverywhere)
— Reply to this email directly or view it on GitHub https://github.com/DenizenScript/Depenizen-For-Bukkit/issues/33#issuecomment-64274933 .
Sorry for how long this has taken, but this project is finally underway... I've added a config.yml for Depenizen specifically for connecting to a Socket hosted by the new Bungee-side plugin
This allows your Bukkit servers and your BungeeCord server to communicate without the need for online players. This is useful for things such as handling Bungee events (like a player connecting) in Denizen scripts.
However, although recommended, the socket connection will not be required if you don't care that there has to be a player online on each server you want to communicate with.
As of right now, all that's set up is a simple connection, and no real useful data can be sent between Bukkit and Bungee yet. I'll work on that tonight - probably in the form of a command... If anyone has any ideas for syntax for such a command, let me know. Otherwise, I'll just add whatever I feel is necessary
- bungee <server or 'all'> <command>
EG
- bungee Hub "run MyScript %local server parses this def% <hub parses this tag>"
Hmm... Why limit it to a single command? Would it be better to make it braced? That would allow you to be able to send entire sections at once, and have more options
- bungee Hub {
- run MyScript
- run UnrelatedOtherScript
- announce "Ya dun did stuff!"
}
Great idea!
Oh, and make sure it transmits queue.definitions if you do it that way.
Bungee command script containers.
...What? What would be the use for such a thing?
To do exactly what you said in the braced commands?