Skip to content

Minecraft plugin to fetch current server information via JSON

License

Notifications You must be signed in to change notification settings

WarmMessenger/mineweb

 
 

Repository files navigation

mineweb-logo

Minecraft Bukkit plugin to fetch current server information via JSON. With this tool it is possible to provide current server data in realtime for your website.

Getting started

When you put the plugin mineweb.jar in the plugin folder and start Minecraft the first time, a new file will be created, called mineweb.properties. There you can set for instance the port:

port = 25555

Afterwards you can run your server properly.

Fetching data

It is now possible to fetch the data on your website by calling http://minecraftip:port. Here is a small JQuery example:

$.ajax({
                type: "GET",
                url: "proxy.php?url=" + ip + ":" + serverPort,
                dataType: "json",
                crossDomain: true,
                success: function(data) {
                    console.log("The current port is: " + data['port']);
                }
            });

About

Minecraft plugin to fetch current server information via JSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%