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


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files