https://github.com/bitbrain/mineweb
Minecraft plugin to fetch current server information via JSON
https://github.com/bitbrain/mineweb
Last synced: 9 months ago
JSON representation
Minecraft plugin to fetch current server information via JSON
- Host: GitHub
- URL: https://github.com/bitbrain/mineweb
- Owner: bitbrain
- License: gpl-2.0
- Created: 2013-11-21T20:44:09.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-26T01:41:44.000Z (over 12 years ago)
- Last Synced: 2025-04-02T22:33:27.528Z (12 months ago)
- Language: Java
- Size: 633 KB
- Stars: 1
- Watchers: 2
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

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:
```properties
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:
```javascript
$.ajax({
type: "GET",
url: "proxy.php?url=" + ip + ":" + serverPort,
dataType: "json",
crossDomain: true,
success: function(data) {
console.log("The current port is: " + data['port']);
}
});
```