在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):deathcap/node-minecraft-ping开源软件地址(OpenSource Url):https://github.com/deathcap/node-minecraft-ping开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):node-minecraft-pingSends a server list ping packet to Minecraft servers Usage:
Several pings are supported. Version compatibility:
(*) As implemented in node-minecraft-protocol src/ping.js (**) Limited = responds but does not return the game/protocol version Example:
ping_fe01fa
{
pingVersion: 1,
protocolVersion: 78,
gameVersion: '1.6.4',
motd: 'A Minecraft Server',
playersOnline: 0,
maxPlayers: 2
}
{
pingVersion: 1,
protocolVersion: 61,
gameVersion: '1.5.2',
motd: 'A Minecraft Server',
playersOnline: 0,
maxPlayers: 2
}
{
pingVersion: 1,
protocolVersion: 49,
gameVersion: '1.4.4',
motd: 'A Minecraft Server',
playersOnline: 0,
maxPlayers: 2
}
ping_fe01
However, 1.3.2 and 1.2.5 servers respond only with limited information (no protocol payload, only server message of the day description, number of online players, and maximum player count). 1.7.10 and above will respond quickly and include the full response, including protocol version. If you need to support arbitrarily old versions, but do not mind the slow 1.6.4 response (for example,
if you're sending a batch of ping requests over a long period of time), ping_fe
If all you need is the server description, and do not mind the slowness of 1.6.4/1.5.2/1.4.4, consider
ping_fefd_udp
Example response from { worldHeight: 128,
motd: 'A Minecraft Server',
gameType: 'SMP',
gameName: 'MINECRAFT',
gameVersion: '1.5.2',
plugins: 'CraftBukkit on Bukkit 1.5.2-R1.1-SNAPSHOT: MultiWorld 4.5.4; SilkSpawners 3.2.2; OpenInv 2.0.2; EnchantMore 2.0; WorldEdit 5.5.6',
defaultWorld: 'world',
numPlayers: 0,
maxPlayers: 20,
port: 25565,
host: '0.0.0.0'
} It can be used to query modified servers, such as CraftBukkit, in order to get their installed plugins. Unlike the fe pings, it does not include the protocol version, though it does include the game version. On vanilla servers, support can be enabled by setting
where GS4 is apparently the "GameSpy4" protocol. Since it is off by default, you'll probably
not need to use ping_all
Note: synchronizing and waiting for each of the pings is currently out of the scope
of this module (see #4),
in general it is preferrable to use only one ping type (suggestion: LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论