Skript icon indicating copy to clipboard operation
Skript copied to clipboard

[Feature] BungeeCord Capabilities

Open joshwenke opened this issue 11 years ago • 7 comments

It would be cool for Skript to hook into BungeeCord, perhaps add a few events like teleporting players to other servers or sending messages to all servers, and conditions like checking if the server is online. Maybe something to get a list of all players on a specificed server as well?

I could use this to show a list of servers, and set a variable whether a server is online or not. Depending on the outcome, I could show "Online" or "Offline". I could move players to other servers and make custom commands to have users switch servers.

joshwenke avatar Sep 30 '13 01:09 joshwenke

I need that, i have an bungee server

GrangerTheDog avatar Jan 18 '14 18:01 GrangerTheDog

PLEASE PLEASE DO THAT NJOL!!!! I REALLY WOULD LIKE THIS BECAUSE I AM RUNNING A MINECRAFT SERVER NETWORK AND IT WOULD BE SOOOOOO COOOL!

leoforney avatar Jan 18 '14 23:01 leoforney

I might add this eventually, though it might need more support as adding a plugin hook is more work than simply adding new Skript stuff.

Link for reference: http://www.spigotmc.org/wiki/bungeecord/

Njol avatar Feb 08 '14 12:02 Njol

By more support do you mean people who want it? Because I'm guessing many people would LOVE the feature, including myself, but not everybody may come to this github post etc.

DaThresh avatar Feb 17 '14 14:02 DaThresh

Njol it is fairly simple but you probably already know that...but its just checking if Bungee exists then creating the plugin channel as that is what BungeeCord uses for teleportation and commands This is what i used in one of my plugins:

ByteArrayOutputStream baos = new ByteArrayOutputStream();
DataOutputStream dos = new DataOutputStream(baos);
dos.writeUTF("Connect");
dos.writeUTF("lobby"); //This being the name of the server to connect to
p.sendPluginMessage((Plugin) plugin, "BungeeCord", baos.toByteArray()); 
dos.close(); //dont forget to close
baos.close(); //not sure if this is the right order to close either but im pretty sure it is

Source: http://www.spigotmc.org/wiki/bukkit-bungee-plugin-messaging-channel/

proferabg avatar Mar 24 '14 07:03 proferabg

Skript plus already adds support for this.

joeuguce99 avatar Apr 09 '14 22:04 joeuguce99

Not effectively though. Without reloading the skripts containing the bungee code, it "loses" connection after about ten minutes and all bungee cord functionality ceases to work (such as sending players from server to server)

MostFunGuy avatar May 12 '14 04:05 MostFunGuy