OneMoreAPI
This plugin was built for the OneMoreBlock.eu creative server because Websend is unstable. Simple as that.
Features
Simple API to do the following:
- Execute a command on the server as Console
- Fetch data from the server via API-builtin commands
- Check if the API is alive
Current builtin commands:
- players - get a CSV formatted list of all current players
Planned features:
- Execute client provided code (compile at runtime)
- Scripting (for custom builtin fetchers)
- Stream encryption
- Statistics command "/api"
Usage
Jar contains a text file documenting the protocol and a class for easy use with PHP:
<?php require_once('OneMoreAPI.php'); $api = new OneMoreAPI(); var_dump($api->ExecuteApiCommand("players"));
Configuration
- apiport: Port on which the API should listen (Default: 25569)
- password: Password to protect access to the API (Default: "OneMoreBlock.eu")
Commands
None.
Source code is at svn://onemoreblock.eu/OneMoreAPI/trunk
-
View User Profile
-
Send Message
Posted Mar 6, 2013Hey! On 'var_dump($api->ExecuteApiCommand("players"));' can we use any command there, or is it only what the api supports?
-
View User Profile
-
Send Message
Posted Jan 14, 2013Sounds like a great idea! Can't wait to see where this goes!