promotional bannermobile promotional banner

OneMoreAPI

API to execute commands and fetch data on and from a server.

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

The OneMoreAPI Team

profile avatar
  • 1
    Projects
  • 1.1K
    Downloads