How to add multiple server in BungeeCord
I have BungeeCord server for 1.8. I wants to have a fallback server and a normal server. I configure the server part part of config.yml file like this:
servers:
-lobby:
motd: 'Welcome to My Server'
address: 192.168.0.112:25565
restricted: false
-fallback:
motd: 'Server is currently in Fallback mode'
address: 192.168.0.112:25580
restricted: false
Now when I run this command : /server fallback it tells me This server doesn't exist. I don't know what happened there, maybe there are a syntax error. Is there any way to prevent this? Thanks.
Best Answer
That is not how YAML syntax works. Change it to this:
servers:
lobby:
motd: 'Welcome to My Server'
address: 192.168.0.112:25565
restricted: false
fallback:
motd: 'Server is currently in Fallback mode'
address: 192.168.0.112:25580
restricted: false
-is only used in lists, for example;
array:
- 'string one'
- 'string two'
Pictures about "How to add multiple server in BungeeCord"



Do I need to buy multiple servers for BungeeCord?
If you want a Bungeecord server, you will need at least 3 servers. In this, you will have one server acting as the proxy to link the other servers together. The more servers you have, the more possibilities.How do I add servers to BungeeCord?
Configuring your Spigot servers for BungeeCordHow do I setup a Minecraft server with multiple servers?
BungeeCord is a server type for Minecraft that allows you to connect several servers together, so players can transfer between them without having to disconnect from the server.How To Make a BUNGEE Minecraft Server! | (Multiple Servers in 1)
More answers regarding how to add multiple server in BungeeCord
Answer 2
At the servers list you need without "-". Now with your config your servers are -lobby and -factions , so you don't need them. You can view a list of servers at /glist or /server. This is your new config:
servers:
lobby:
motd: 'Welcome to My Server'
address: 192.168.0.112:25565
restricted: false
fallback:
motd: 'Server is currently in Fallback mode'
address: 192.168.0.112:25580
restricted: false
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: saeed, luis gomes, Kevin Ku, Pixabay
