Online status and players of Minecraft server made into wordpress widget. xPaw made Minecraft-query which is getting data from MC server, give him fav ;).
Switch branches/tags
Nothing to show
Clone or download
Latest commit 9725c34 Aug 28, 2014
Permalink
Failed to load latest commit information.
minecraft-query Update - had some problems with github formating... Aug 28, 2014
README.md Added "How it works" Aug 28, 2014

README.md

Server Status Wordpress Plugin Query by xPaw

Description

Get online status and players of Minecraft server comfortably in Wordpress widget.
xPaw made Minecraft-query which is getting data from MC server, give him fav ;).
Plugin contains 2 widgets

Minecraft Server - Single will show one server in your widget area with more detailed description and version of server.
Minecraft Server - Multi will show a list of servers with just name and players online.

How it works

All data from servers are stored in a Wordpress database. With that optimalization there is a set timer to 60 seconds, so your website won't ask server for data more then once per 60 sec. Then all the magic is happening in a background, so when somebody visits your site data are loaded fast from dabase and there is set a command to check for new data and load them to database meanwhile.

Instructions

Before using this class, you need to make sure that your server is running GS4 status listener.

Look for those settings in server.properties:

enable-query=true
query.port=25565

Wordpress Installation

Go to your **~ wordpress/wp-content/plugins** and copy there folder minecraft-query.

Then activate it in Wordpress plugins and go to Server Settings and set your properties.

Last thing is going to Widgets, and Drag Minecraft server - Multi or Minecraft server - Single to your widget area and choose whitch server you want to show.

RCON

Minecraft implements Source RCON protocol, so I suggest using PHP Source Query library for your RCON needs.

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/