bungeecord wont list my servers in order

Discussion in 'Spigot Plugin Development' started by DeadlyDeath001, Apr 30, 2015.

  1. Error: There Are Not In The Order I Want Them To Be, Is There Anyway I Can Configure This?
    Code (Text):
    groups:
      DeadlyDeath001:
      - admin
    disabled_commands:
    - disabledcommandhere
    player_limit: -1
    stats: 4057855e-4715-46d4-838a-745b60387338
    permissions:
      default:
      - bungeecord.command.server
      admin:
      - bungeecord.command.list
      - bungeecord.command.alert
      - bungeecord.command.end
      - bungeecord.command.ip
      - bungeecord.command.reload
      - bungeecord.command.send
      - bungeecord.command.find
    listeners:
    - query_port: 25577
      motd: '&1Another Bungee server'
      tab_list: GLOBAL_PING
      query_enabled: false
      forced_hosts:
        pvp.md-5.net: pvp
      ping_passthrough: false
      default_server: Lobby-1
      bind_local_address: true
      fallback_server: Lobby-1
      host: CLASSIFIED:25565
      max_players: -1
      tab_size: 60
      force_default_server: true
    timeout: 30000
    connection_throttle: 4000
    servers:
      Lobby-1:
        motd: ''
        address: CLASSIFIED:25566
        restricted: false
      Lobby-2:
        motd: ''
        address: CLASSIFIED:25567
        restricted: false
      Lobby-3:
        motd: ''
        address: CLASSIFIED:25568
        restricted: false
      Lobby-4:
        motd: ''
        address: CLASSIFIED:25569
        restricted: false
      Lobby-5:
        motd: ''
        address: CLASSIFIED:25570
        restricted: false
    ip_forward: true
    online_mode: true
     
    Picture:
    [​IMG]
     
    #1 DeadlyDeath001, Apr 30, 2015
    Last edited: Apr 30, 2015
  2. Why do you want them to be listed in an order ?
     
  3. They Are Not In Alphabetical Order, Is there anyway I configure this?
     
  4. Theepwner

    Supporter

    I don't think there is a way ATM. Btw, your typing is cancerous.
     
  5. If you want people to join one of the servers you could use this plugin:
    BungeeSigns
     
  6. Please read the question he/she asked.
     
  7. Post your code.
     
  8. I believe that's the /server command built into Bungee itself.
     
  9. I didn't understand what he wanted, sorry
     
  10. When a thread is posted in the "Spigot Plugin Development" section, I expect there to be code.
     
  11. gigosaurus

    Supporter

    Read the question again.
     
    #11 gigosaurus, Apr 30, 2015
    Last edited: Apr 30, 2015
  12. You're right.

    "They Are Not In Alphabetical Order, Is there anyway I configure this?" was the question. How was your answer related to this? You were simply self-advertising your plugin.
     
  13. gigosaurus

    Supporter

    Looking at the way the /server command is implemented, this will be impossible without editing the code or adding a BungeeCord plugin.

    This is because the order of the servers shown when using /server is just the order in which the iterator iterates over the set given from the values() of the TMap containing the servers.
     
  14. You could override the server command and implement your own sorting function.
     
  15. Okay I thought he just wants people to join the server with the command.. I didn't simply want to advertise my plugin :/
    @DeadlyDeath001 you can not order it without coding because it is inside Bungee, maybe we have to ask md_5 because he created it ^^ If you want to make you own command you should try to get all servernames in a list create click able messages and send all names to the Player in order, if the player clicks one server name you could run the /server (servername) command or directly use Bungee in your code.