0.01
No commit activity in last 3 years
No release in over 3 years
A gem to retrieve data from a Minecraft server's query interface and manage a Minecraft or SRCDS server via RCON.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

minecraft-query

Official version 1 of the old forked rubygem, completely redone/refactored.

Gem Version

Usage

To simply get basic information about the server just require 'minecraft-query' and

query = Query::simpleQuery('server.ip.here', 25565)

which will return

=> {:motd=>"ECS Survival", :gametype=>"SMP", :map=>"world", :numplayers=>"1", :maxplayers=>"20"}

The 25565 needs to be set to whatever the port you have set for query in server.properties

To get a full list of information, the syntax is

query = Query::fullQuery('server.ip.here', 25565)

You can also do fun things such as

players = query[:numplayers] + '/' + query[:maxplayers]

to get a nice => 1/20 which can easily be handled on a website.

RCON

The Remote CONtrol part of the gem is implemented, but still being developed. If you want to know syntax, have a look at the source (lib/rcon.rb) for now until I get around to documenting it