Austinb / GameQ

A PHP Gameserver Status Query Library
https://austinb.github.io/GameQ/
GNU Lesser General Public License v3.0
402 stars 137 forks source link

empty field gq_numplayers on minecraft #290

Closed shyim closed 8 years ago

shyim commented 8 years ago

When i query a minecraft 1.8.8 server i got a empty numplayers field:

Example:

Array
(
    [dedicated] => 1
    [gq_address] => 
    [gq_dedicated] => 1
    [gq_gametype] => N/A
    [gq_hostname] => 
    [gq_joinlink] => 
    [gq_mapname] => 
    [gq_maxplayers] => 
    [gq_name] => Minecraft
    [gq_numplayers] => 
    [gq_online] => 1
    [gq_password] => 0
    [gq_port_client] => 26001
    [gq_port_query] => 26001
    [gq_protocol] => gamespy3
    [gq_transport] => udp
    [gq_type] => minecraft
    [password] => 0
    [players] => Array
        (
        )

    [teams] => Array
        (
        )

    [id] => 15
    [max_players] => 5
    [map] => N/A
    [num_players] => 0
)
Austinb commented 8 years ago

Are you certain you are running 1.8.8? All the servers I have tested running 1.8.8 return numplayers and maxplayers not num_players or max_players. Please provide the server ip:port for the server you are having issues with (direct message it to me if you want) so I can test.

Also I do not see the version number in your sample output above.

Austinb commented 8 years ago
 Array
        (
            [dedicated] => 1
            [game_id] => MINECRAFT
            [gametype] => SMP
            [gq_address] => 
            [gq_dedicated] => 1
            [gq_gametype] => MINECRAFT
            [gq_hostname] => 
            [gq_joinlink] => 
            [gq_mapname] => world
            [gq_maxplayers] => 45
            [gq_name] => Minecraft
            [gq_numplayers] => 7
            [gq_online] => 1
            [gq_password] => 0
            [gq_port_client] => 25565
            [gq_port_query] => 25565
            [gq_protocol] => gamespy3
            [gq_transport] => udp
            [gq_type] => minecraft
            [hostip] => 
            [hostname] => 
            [hostport] => 25565
            [map] => world
            [maxplayers] => 45
            [numplayers] => 7
            [password] => 0
            [players] => Array( )
[plugins] => CraftBukkit on Bukkit 1.8.8-R0.1-SNAPSHOT: LinksOnSigns 1.8; Questioner 0.6; Lobbys 1; TuxTwoLib 1.8.4-b6; Lockette 1.8.21; AntiBotUltra 7.1; PressurePush 0.8; Stop127 1.3; CoreProtect 2.0.8; WorldEdit 6.0,3342-78f975b9; Playtime 1.4.5; HealthBar 1.8.2; MultiInv 3.3.2-dev; Essentials TeamCity; ClearLag 2.7.7; AutoMessage 1.5.2; SurvivalGames 0.5.8.42; Modifyworld 1.19.7; OP-Password-Safe 0.1; Kits 1.6; ProtocolLib 3.6.3-SNAPSHOT; Multiverse-Core 2.5-b691; AutoSaveWorld 4.14.2; EssentialsChat TeamCity; PermissionsEx 1.23.4; NullTerrain 0.3.1; Register 1.8; mcMMO 1.5.03-SNAPSHOT-b46; Vault 1.5.6-b49; MoneyMobs 0.3; MassiveCore 2.7.5; SkyWarsReloaded 2.8.4; ChatProtectionPlus 1.0.1; Holograms 1.8.8c; WorldGuard 6.0.0-SNAPSHOT.1510-; SkinsRestorer 10.0; EssentialsProtect TeamCity; Multiverse-NetherPortals 2.5-b675; ChatManager 1.19.1; EssentialsSpawn TeamCity; Sign_Bank 2.0; ButtonWarp 2.2.2; CompatNoCheatPlus 6.5.0-RC-sMD5NET-b68; uSkyBlock 2.3-HF3; Towny 0.90.0.0; Jobs 2.11.4; NoCheatPlus 3.13.5-BETA-sMD5NET-b914; EchoPet 2.8.0-b52; ChestShop 3.8.7; AuthMe 3.4; MobArena 0.96.9; TownyNameUpdater 1.0
            [teams] => Array
                (
                )

            [version] => 1.8.8
        )
Austinb commented 8 years ago

Please reopen with more information.