Executing a Command on all Bungeecord servers

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

OfficialLiovo

Member
Apr 29, 2017
16
1
0
23
Hey,

I'd like to know how you can execute a command on all bungeecord servers with one command. Let's say I do the command "/execute <command>", then I want it to execute argument 1 on all of my spigot servers that are connected to bungeecord.

Signed,
Liovo
 
You will need Skellett and SkellettProxy installed correctly then you can use the code below as you please.

Place this function on all your servers connected to the bungeecord that have Skellett.
code_language.skript:
function executeCommand(cmd: text):
    execute console command {_cmd}
Then from any server you can execute this by using this code below
code_language.skript:
loop all bungeecord servers:
    evaluate "executeCommand(""/example command"")" on bungeecord server "%loop-value%"
You can also force a player to chat or use commands on the bungee and you can also execute a command in the bungeecord console with SkellettProxy. Reply again if you would like help with that.
 
You will need Skellett and SkellettProxy installed correctly then you can use the code below as you please.

Place this function on all your servers connected to the bungeecord that have Skellett.
code_language.skript:
function executeCommand(cmd: text):
    execute console command {_cmd}
Then from any server you can execute this by using this code below
code_language.skript:
loop all bungeecord servers:
    evaluate "executeCommand(""/example command"")" on bungeecord server "%loop-value%"
You can also force a player to chat or use commands on the bungee and you can also execute a command in the bungeecord console with SkellettProxy. Reply again if you would like help with that.
Why the function lol
 
Status
Not open for further replies.