From 0f1deb03daf519e271a6e54b30aa91fc3f1693ba Mon Sep 17 00:00:00 2001 From: mmorrison Date: Sun, 11 Nov 2018 06:21:12 -0600 Subject: [PATCH] Update readme to remove legacy minecraft notes --- README.md | 5 ----- games.txt | 2 +- lib/typeresolver.js | 3 +++ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a4a2784..2bbc68b 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,6 @@ Games List * Medal of Honor: Warfighter (mohwf) [[Separate Query Port](#separate-query-port)] * Minecraft (minecraft) [[Additional Notes](#minecraft)] * Minecraft: Pocket Edition (minecraftpe) -* Minecraft (minecraftping) [[Additional Notes](#minecraft)] * Monday Night Combat (mnc) [[Separate Query Port](#separate-query-port)] * Multi Theft Auto: Vice City (mtavc) [[Separate Query Port](#separate-query-port)] * Multi Theft Auto: San Andreas (mtasa) [[Separate Query Port](#separate-query-port)] @@ -395,10 +394,6 @@ have set the cvar: host_players_show 2 DayZ uses a query port that is separate from its main game port. The query port is usually the game port PLUS 24714 or 24715. You may need to pass this port in as the 'port_query' request option. -### Minecraft -Some minecraft servers may not respond to a typical status query. If this is the case, try using the -'minecraftping' server type instead, which uses a less accurate but more reliable solution. - ### Mumble For full query results from Mumble, you must be running the [GTmurmur plugin](http://www.gametracker.com/downloads/gtmurmurplugin.php). diff --git a/games.txt b/games.txt index 3957f05..001684e 100644 --- a/games.txt +++ b/games.txt @@ -170,7 +170,7 @@ mohwf|Medal of Honor: Warfighter|battlefield|port=25200,port_query_offset=22000 minecraft|Minecraft|minecraft|port=25565|srvRecord=_minecraft._tcp,doc_notes=minecraft # Legacy name -minecraftping|Minecraft|minecraft|port=25565|srvRecord=_minecraft._tcp,doc_notes=minecraft +minecraftping||minecraft|port=25565|srvRecord=_minecraft._tcp,doc_notes=minecraft minecraftpe|Minecraft: Pocket Edition|gamespy3|port=19132,maxAttempts=2 mnc|Monday Night Combat|valve|port=7777,port_query=27016 diff --git a/lib/typeresolver.js b/lib/typeresolver.js index 1a3fe63..78f27f0 100644 --- a/lib/typeresolver.js +++ b/lib/typeresolver.js @@ -80,6 +80,9 @@ class TypeResolver { let out = ''; for(const key of Object.keys(games)) { const game = games[key]; + if (!game.pretty) { + continue; + } out += "* "+game.pretty+" ("+key+")"; if(game.options.port_query_offset || game.options.port_query) out += " [[Separate Query Port](#separate-query-port)]";