Skip to content

Virtual Hosts

Minecrell edited this page Aug 21, 2014 · 3 revisions

Contents: Introduction | Configuration | BungeeCord

As of ServerListPlus v3.3 you can now add virtual hosts to your configuration.

Virtual Hosts?
When a client pings the server, then it will also send the IP/Hostname and the port it used to connect to the server. If you have multiple domains pointing to your server you can use it to display additional information for a special game for example. Another use case is if you have a new IP you may want to warn other users to use the new IP instead of the old one!

Configuration

Add a new section to your configuration on the same level as Default and Personalized called Hosts. All virtual hosts will be defined in this configuration section. After that you simply add a new section with the IP you want to use and in it you have just your familiar configuration again! Here is an example:

Hosts:
  pvp.example.com:
    Default:
      Description:
      - |-
        &aThis is the PvP Server!
  games.example.com:
    Default:
      Description:
      - |-
        &aThis is the Games Server!

So if a client uses pvp.example.com to connect to the server then it will see the message for the PvP server, but if he connects using games.example.com then he will see the message for the Games server!

BungeeCord

BungeeCord has a similar feature already built-in using forced hosts. They will be configured in the BungeeCord configuration file and then you can redirect users to a special server if they connect using a special IP. You can also use configured forced hosts in the ServerListPlus configuration:

Hosts:
  'Name/pvp':
    Default:
      Description:
      - |-
        &aThis is the PvP Server!