Depenizen icon indicating copy to clipboard operation
Depenizen copied to clipboard

Bungee support

Open mcmonkey4eva opened this issue 12 years ago • 12 comments

sending messages across servers- see https://github.com/DenizenScript/Denizen-For-Bukkit/issues/864

mcmonkey4eva avatar Nov 24 '14 22:11 mcmonkey4eva

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.

mcmonkey4eva avatar Nov 24 '14 22:11 mcmonkey4eva

so are you talking simple command relay, or a full on bridge?

AnthonyAMC avatar Nov 24 '14 22:11 AnthonyAMC

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)

adambkehl avatar Nov 24 '14 22:11 adambkehl

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 .

writeescape avatar Nov 24 '14 22:11 writeescape

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

Morphan1 avatar Mar 03 '15 14:03 Morphan1

- bungee <server or 'all'> <command> EG - bungee Hub "run MyScript %local server parses this def% <hub parses this tag>"

mcmonkey4eva avatar Mar 03 '15 19:03 mcmonkey4eva

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!"
  } 

Morphan1 avatar Mar 03 '15 20:03 Morphan1

Great idea!

mcmonkey4eva avatar Mar 03 '15 20:03 mcmonkey4eva

Oh, and make sure it transmits queue.definitions if you do it that way.

mcmonkey4eva avatar Mar 03 '15 20:03 mcmonkey4eva

Bungee command script containers.

AnthonyAMC avatar Mar 04 '15 04:03 AnthonyAMC

...What? What would be the use for such a thing?

Morphan1 avatar Mar 04 '15 04:03 Morphan1

To do exactly what you said in the braced commands?

AnthonyAMC avatar Mar 04 '15 05:03 AnthonyAMC