BungeeCord for Dummies

Discussion in 'BungeeCord Discussion' started by Brian Schweitzer, Apr 2, 2013.

Thread Status:
Not open for further replies.
  1. I'm an IT-type guy, but don't know Linux/Server side stuff too much. That being said, I rent a VPS and have 3 Minecraft servers running on it. They all have dedicated IPs and I use port 25565 on all of them.

    I also have a 4th dedicated IP that is current unused.

    I have 4 domain names assigned to the VPS - 1 for each of the servers, and I have a 4th one (minecrafthubserver.com) to be used as my hub location.

    I have BungeeCord installed but I don't have it configured properly... AND I'm missing a few things...

    All the code snippets are below... but here is my "goal"...

    I'd like all 3 of my existing servers to maintain their current connection domains (play.minecraftamerica.com, play.kainekraft.com, and play.bestsurvivalgames.com). However, I want them all to no longer spawn new players in their respective servers, but into a "hub room" of sorts. Within this room, I envision having 3 portals (for now, will expand to 7-10) - each of them going to a different server's main spawn point.

    1. Is this even possible?
    2. What kind of stuff do I need to load into my VPS?
    3. I'm sure this info is available in the forums, but I'm looking for a nice, clear, concise method all encompassed into this post instead of spread out on several posts.
    4. Am I able to maintain both a secured server somehow as well as a BungeeCord hub server like I envision?
    5. If anyone would like to provide sample files that I can cut/paste/modify - I'D LOVE YOU!

    The code snippets are here:

    BungeeCord config.yml
    Code (Text):
    listeners:
    - max_players: 1
      host: 168.144.134.100:25565
      tab_size: 60
      force_default_server: false
      texture_size: 16
      motd: Another Bungee server
      default_server: mca
      forced_hosts:
        168.144.134.20: mca
        168.144.134.21: kku
        168.144.134.36: sga
    servers:
      mca:
        address: play.minecraftamerica.com:25565
        restricted: false
      kku:
        address: play.kainekraft.com:25565
        restricted: false
      sga:
        address: play.bestsurvivalgames.com:25565
        restricted: false
    stats: 79564999-f458-464e-b038-f0d966362355
    permissions:
      default:
      - bungeecord.command.server
      - bungeecord.command.list
      admin:
      - bungeecord.command.alert
      - bungeecord.command.end
      - bungeecord.command.ip
      - bungeecord.command.reload
    tab_list: GLOBAL_PING
    player_limit: -1
    online_mode: true
    timeout: 30000
    groups:
      md_5:
      - admin
     
    One of my server.properties files:
    Code (Text):
    #Minecraft server properties
    #Tue Apr 02 18:23:40 UTC 2013
    generator-settings=
    allow-nether=true
    level-name=world
    enable-query=true
    allow-flight=false
    server-port=25565
    query.port=25566
    level-type=DEFAULT
    enable-rcon=false
    level-seed=
    server-ip=127.0.0.1
    max-build-height=256
    spawn-npcs=false
    white-list=false
    debug=false
    spawn-animals=true
    hardcore=false
    snooper-enabled=false
    texture-pack=
    query-port=25566
    online-mode=false
    pvp=true
    difficulty=2
    gamemode=0
    max-players=100
    spawn-monsters=false
    view-distance=8
    generate-structures=false
    spawn-protection=16
    motd=[Kit Upgrades] [Multiple Games]
     
     
  2. fuzzy_bot

    Patron

    Hi Brian,

    Setup your three servers to bound to localhost on port numbers like 25567 25568 25569

    Setup four listeners in bungee (by repeating the listener block) or just bind one listener to 0.0.0.0:25565

    you do not need to configure forced hosts as you want everyone going to the default hub server.

    You will need to setup a fourth minecraft server to run the hub.

    Example Bungee config:

    Code (Text):
    listeners:
    - max_players: 1
      host: 168.144.134.100:25565
      tab_size: 60
      force_default_server: true
      texture_size: 16
      motd: '&5Some server'
      default_server: hub
      forced_hosts:
        unconfiguredhost: unconfiguredserver
    - max_players: 1
      host: 168.144.134.20:25565
      tab_size: 60
      force_default_server: true
      texture_size: 16
      motd: '&5Some server'
      default_server: hub
      forced_hosts:
        unconfiguredhost: unconfiguredserver
    - max_players: 1
      host: 168.144.134.21:25565
      tab_size: 60
      force_default_server: true
      texture_size: 16
      motd: '&5Some server'
      default_server: hub
      forced_hosts:
        unconfiguredhost: unconfiguredserver
    - max_players: 1
      host: 168.144.134.36:25565
      tab_size: 60
      force_default_server: true
      texture_size: 16
      motd: '&5Some server'
      default_server: hub
      forced_hosts:
        unconfiguredhost: unconfiguredserver
    servers:
      hub:
        address: 127.0.0.1:25566
        restricted:false
      mca:
        address: 127.0.0.1:25567
        restricted: false
      kku:
        address: 127.0.0.1:25568
        restricted: false
      sga:
        address: 127.0.0.1:25569
        restricted: false
    stats: 79564999-f458-464e-b038-f0d966362355
    permissions:
      default:
      - bungeecord.command.server
      - bungeecord.command.list
      admin:
      - bungeecord.command.alert
      - bungeecord.command.end
      - bungeecord.command.ip
      - bungeecord.command.reload
    tab_list: GLOBAL_PING
    player_limit: -1
    online_mode: true
    timeout: 30000
    groups:
      md_5:
      - admin
     
    #2 fuzzy_bot, Apr 2, 2013
    Last edited: Apr 2, 2013
    • Winner Winner x 1
  3. This was perfect... Thanks so much.

    There was a spacing error, but I fixed that after about 73 tries - but that's how I learn this stuff...
    Code (Text):
      hub:
        address: 127.0.0.1:25566
        restricted:false  <-----  Space required after :
     
    I was just about to re-post, but figured it out.

    Again, I really appreciate the responses... I "get it" more now...
     
  4. fuzzy_bot

    Patron

    http://yamllint.com/ would have saved you 71 tries
     
    • Optimistic Optimistic x 1
  5. Oooo, thanks.

    Hey, I'm new!
     
  6. i have a problem, in my server:properties #Minecraft server properties
    #Thu Nov 07 18:36:18 PST 2013
    generator-settings=
    allow-nether=true
    level-name=world
    enable-query=false
    allow-flight=false
    server-port=25570
    level-type=DEFAULT
    enable-rcon=false
    force-gamemode=false
    level-seed=
    server-ip=108.45.125.138
    max-build-height=256
    spawn-npcs=true
    white-list=false
    spawn-animals=true
    texture-pack=
    snooper-enabled=true
    hardcore=false
    online-mode=false
    pvp=true
    difficulty=1
    player-idle-timeout=0
    gamemode=0
    max-players=20
    thats what i have when i start everything {bungeecord} and my servers it crashed the crash is
    ---- Minecraft Crash Report ----
    // Who set us up the TNT?

    Time: 11/7/13 2:54 PM
    Description: Exception in server tick loop

    java.net.UnknownHostException: 108.45.125.138:25570
    at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
    at java.net.InetAddress.getAddressesFromNameService(Unknown Source)
    at java.net.InetAddress.getAllByName0(Unknown Source)
    at java.net.InetAddress.getAllByName(Unknown Source)
    at java.net.InetAddress.getAllByName(Unknown Source)
    at java.net.InetAddress.getByName(Unknown Source)
    at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.java:87)
    at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:393)
    at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)


    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------

    -- System Details --
    Details:
    Minecraft Version: 1.6.4
    Operating System: Windows 8 (amd64) version 6.2
    Java Version: 1.7.0_40, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 992030552 bytes (946 MB) / 1029701632 bytes (982 MB) up to 1029701632 bytes (982 MB)
    JVM Flags: 2 total; -Xms1024M -Xmx1024M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Suspicious classes: [net.minecraft.server.v1_6_R3.ICommandListener, IMojangStatistics, ICommandHandler, ...], [org.bukkit.BlockChangeDelegate, World, Server], [org.bukkit.block.BlockState], [org.bukkit.command.CommandSender, RemoteConsoleCommandSender], [org.bukkit.configuration.serialization.ConfigurationSerializable], [org.bukkit.craftbukkit.Main], [org.bukkit.craftbukkit.libs.jline.TerminalFactory, Terminal, Flavor, ...], [org.bukkit.craftbukkit.libs.jline.console.ConsoleReader, CursorBuffer, ConsoleKeys, ...], [org.bukkit.craftbukkit.libs.jline.console.completer.CompletionHandler, CandidateListCompletionHandler], [org.bukkit.craftbukkit.libs.jline.console.history.History, MemoryHistory], [org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader, Configuration, Log], [org.bukkit.craftbukkit.v1_6_R3.LoggerOutputStream], [org.bukkit.craftbukkit.v1_6_R3.inventory.CraftItemStack, CraftRecipe, CraftShapedRecipe, ...], [org.bukkit.craftbukkit.v1_6_R3.potion.CraftPotionEffectType], [org.bukkit.craftbukkit.v1_6_R3.util.ServerShutdownThread, Waitable, TerminalConsoleHandler, ...], [org.bukkit.entity.Entity], [org.bukkit.event.Event, Cancellable], [org.bukkit.event.block.BlockEvent, BlockFadeEvent, BlockGrowEvent, ...], [org.bukkit.event.entity.EntityEvent, EntityInteractEvent, EntityDamageEvent, ...], [org.bukkit.event.hanging.HangingEvent, HangingPlaceEvent], [org.bukkit.event.inventory.InventoryMoveItemEvent], [org.bukkit.event.painting.PaintingEvent, PaintingPlaceEvent], [org.bukkit.event.player.PlayerEvent, PlayerFishEvent], [org.bukkit.event.server.ServerEvent, MapInitializeEvent, ServerCommandEvent], [org.bukkit.event.world.WorldEvent, WorldInitEvent, WorldSaveEvent, ...], [org.bukkit.inventory.ItemStack, Inventory, Recipe, ...], [org.bukkit.map.MapView], [org.bukkit.metadata.Metadatable], [org.bukkit.permissions.ServerOperator, Permissible], [org.bukkit.plugin.messaging.PluginMessageRecipient], [org.bukkit.potion.PotionEffectType, PotionEffectTypeWrapper], [org.fusesource.hawtjni.runtime.Library], [org.fusesource.jansi.AnsiOutputStream, WindowsAnsiOutputStream, AnsiConsole, ...], [org.fusesource.jansi.internal.Kernel32, CONSOLE_SCREEN_BUFFER_INFO, COORD, ...]
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    CraftBukkit Information:
    Running:
    Failed to handle CraftCrashReport:
    java.lang.NullPointerException
    at org.bukkit.Bukkit.getName(Bukkit.java:72)
    at org.bukkit.craftbukkit.v1_6_R3.CraftCrashReport.call(CraftCrashReport.java:20)
    at net.minecraft.server.v1_6_R3.CrashReportSystemDetails.a(SourceFile:74)
    at net.minecraft.server.v1_6_R3.CrashReport.h(CrashReport.java:41)
    at net.minecraft.server.v1_6_R3.CrashReport.<init>(CrashReport.java:28)
    at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:438)
    at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)

    Profiler Position: N/A (disabled)
    Is Modded: Definitely; Server brand changed to 'craftbukkit'
    Type: Dedicated Server (map_server.txt)
     
  7. plz help me, i would really like to have a bungeecord server. if you need anything else just say so =)
     
  8. it works with localhost but it says cant connect to default:server in bold red.
     
  9. don't use the same port
     
  10. You are a god.
     
    • Like Like x 1
  11. Just have the domains point to your hub server/world/area and have the portals there? :eek:
     
  12. Don't put your ip in it ....
     
  13. i can't access to the server: server is in online mode!
     
  14. @GWinMasterX_YT set the other servers (that the bungeecord is connecting with) in offline mode. this can be done with the server.properties of those servers.
     
  15. Who has Skype and can help me though this, My Skype is josh_pugh8
     
  16. ssamjh

    Moderator

    This thread was 3 months old?

    Anyway, you can no longer forward a BungeeCord instance to another BungeeCord instance.
     
Thread Status:
Not open for further replies.