Bruke Sponge med BungeeCord

BungeeCord er et stykke proxyprogramvare til servere som ble skrevet av md_5 og SpigotMC-teamet, og som lar servereiere koble sammen Minecraftservere slik at spillere kan hoppe mellom servere uten at man må koble fra den ene og koble til den andre manuelt. BungeeCord brukes typisk av servernettverk som tillater mange spillmoduser.

For mer informasjon om BungeeCord, hva det er, hvordan man setter det opp og hvordan det virker, ta en titt på BungeeCord sin nettside. Denne siden fokuserer på spesifikke steg for Sponge.

Advarsel

In order to connect servers to BungeeCord, you must run the servers in offline mode. In offline mode, without the proper precautions, anyone can log into the server using any name they wish, including those who have admin permissions. Make sure you protect your servers using firewalls. If you are using linux, there is an IPTables guide at SpigotMC Firewall guide, alternatively, some distributions come with UncomplicatedFirewall «ufw».

If you are not comfortable with tinkering with Linux, or you are unsure as to how to prevent unauthorised access to your servers, consider consulting with someone who has more experience to ensure the security of your server.

Obs

Pass på at port 22 er TILLATT dersom du bruker SSH, ellers kan du låse deg selv ute av serveren din!

IP-videresending

BungeeCord has a mode called IP Forwarding, which allows BungeeCord to pass the player’s UUID and IP address to any connected server, even though the servers are being run in offline mode. With current builds of BungeeCord, IP Forwarding works with SpongeVanilla, whilst IP Forwarding only supports SpongeForge when vanilla clients connect - modded servers that require modded clients cannot natively make use of IP Forwarding with the current version of BungeeCord. SpongeForge is only fully supported with the use of a patched version of BungeeCord, or a community supplied BungeeCord plugin.

A pull request has been supplied to BungeeCord to allow BungeeCord to support SpongeForge natively. We are awaiting it to be included in the main product:

Bruke BungeeCord uten IP-videresending

While it is recommended that you use IP Forwarding wherever possible. If you do not wish to do so, simply ensure that online-mode is set to false in your server.properties file and add the server details to Bungee’s config.yml file. Bungee will then forward any connections to the server when required. It is a good precaution to set the server-port to something other than 25565.

Dette vil fungere med alle implementasjoner av Sponge, inkludert med mods.

Bruke BungeeCord med IP-videresending

Hvis du vil bruke IP-videresending:

  • I BungeeCord sin config.yml, set ip_forward til true

  • In Sponge’s config (config/global.conf), set modules.bungeecord to true and bungeecord.ip-forwarding to true

  • Hvis du bruker annen serverprogramvare, se etter eventuelle endringer i dokumentasjonen til den serveren.

Dette må gjøres for alle servere som er koblet til ditt BungeeCord-nettverk. Deretter kan du følge instruksjonene for å bruke BungeeCord uten IP-videresending.