It 's a demo to get Minecraft server status
The server version that has been tested is 1.20.6
Check your Minecraft server version, it should at least 1.7+
Change address
, port
(if you change the default port), protocol_version
(if default value dosen't work)
if you change protocol_version
, the Minecraft server TCP packet may be some different from current packet, you may need to change some code.