How to add multiple server in BungeeCord

How to add multiple server in BungeeCord - Man in Black Polo Shirt Sitting at the Table

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"

How to add multiple server in BungeeCord - Close Up Photo of Programming of Codes
How to add multiple server in BungeeCord - Data Codes through Eyeglasses
How to add multiple server in BungeeCord - Person Holding Pastry Dishes on White Ceramic Plates



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 BungeeCord
  • On the Spigot servers, navigate to the Spigot directory and open spigot. yml .
  • Change bungeecord: false to bungeecord: true . Save and exit.
  • Open the server. properties file.
  • Change online-mode=true to online-mode=false . Save and exit.
  • Restart the Spigot servers.


  • How 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