8000 GitHub - by-cx/mcstatus: A Python class for checking the status of an enabled Minecraft server
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

by-cx/mcstatus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MinecraftQuery

With 1.9 came a shiny new tool to allow native status querying in vanilla Minecraft servers. This is a simple class designed to aid in retrieving any data from the servers.

See it in action: http://dinnerbone.com/minecraft/tools/status/

Protocol documention: http://dinnerbone.com/blog/2011/10/14/minecraft-19-has-rcon-and-query/

Usage

from status_query import MinecraftQuery

query = MinecraftQuery("localhost", 25565)

basic_status = query.get_status()
print "The server has %d players" % (basic_status['numplayers'])

full_info = query.get_rules()
print "The server is on the map '%s'" % (full_info['map'])

Rights

Fully open. Go wild.

About

A Python class for checking the status of an enabled Minecraft server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0