[BungeeCord source] What code is responsible for that...

Discussion in 'BungeeCord Plugin Development' started by Dzoko, Jul 9, 2015.

  1. Hi everyone, what code does display "BungeeCord 1.8" on server list while server's protocol is another than client? I mean BungeeCord code, not custom plugins.


    Screenshot:
    http://scr.hu/0duk/t4oly
     
  2. I don't know what you mean by this but you can use the ProxyPingEvent to dynamically change the ping message to what you want.
     
  3. I don't want to change ping message.

    I want to change BungeeCord 1.8 to another text when client doesn't have 1.7/1.8
     
    • Funny Funny x 1
  4. "I want to change BungeeCord 1.8 to another text when client doesn't have 1.7/1.8" = Change the ping message
     
    • Like Like x 1
  5. This forum sucks.
    No one help me, bye
     
    • Friendly Friendly x 1
  6. updating spigot helped me 100%
     
  7. It's built into Bungeecord, I'm not sure you can change it.
    More reading:
    Protocol documentation: http://wiki.vg/Server_List_Ping
    Bungeecord relevant source: https://github.com/SpigotMC/BungeeC...src/main/java/net/md_5/bungee/protocol/packet

    Relevant section of JSON returned by the protocol
    Code (json (Unknown Language)):

    {
    "version": {
    "name": "1.8.7", //This is the line that returns Bungeecord 1.8 to the client, according to my testing
    "protocol": 47
    },
    "players": {
    "max": 100,
    "online": 5,
    "sample": [
    {
    "name": "thinkofdeath",
    "id": "4566e69f-c907-48ee-8d71-d7ba5aa00d20"
    }
    ]
    },
    "description": {
    "text": "Hello world"
    },
    "favicon": "data:image/png;base64,<data>"
    }
     
    EDIT: JSON formatting broke, but it's there