<commit_before>MControl
========

MControl is a library to controll a minecraft-server via. the rcon protocol.

Installation
------------

MControl can be installed via. Composer:

    {
        "require": {
            "gries/MControl": "dev-master"
        }
    }

Basic usage
-----------
    use gries\MControl\Server\Commander;
    use gries\MControl\Server\Rcon\RconManager;

    // create a RconConnection
    $rcon = new RconManager('localhost', 25575, 'p4ssw0rd');

    // create a Commander
    $commander = new Commander($rcon);

    // set the server-time
    $commander->setTime('12000');

    // listPlayers
    $players = $commander->listPlayers(); // -> array('playerx', 'playery');

    // teleport one player to another
    $commander->teleport(array('playerx', 'playery'));

    // locate a player
    $location = $commander->locate('playerx');  // -> array('x' => 157, 'y' => 50, 'z' => -54);

Currently these Commands are available
--------------------------------------

- say
- listPlayers
- locatePlayer
- teleport
- give
- setWeather
- setTime


Author
------

- [<NAME>](http://twitter.com/griesx)

License
-------

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.<commit_msg>Add tests section to readme<commit_after>MControl
========

MControl is a library to controll a minecraft-server via. the rcon protocol.

Installation
------------

MControl can be installed via. Composer:

    {
        "require": {
            "gries/MControl": "dev-master"
        }
    }

Basic usage
-----------
    use gries\MControl\Server\Commander;
    use gries\MControl\Server\Rcon\RconManager;

    // create a RconConnection
    $rcon = new RconManager('localhost', 25575, 'p4ssw0rd');

    // create a Commander
    $commander = new Commander($rcon);

    // set the server-time
    $commander->setTime('12000');

    // listPlayers
    $players = $commander->listPlayers(); // -> array('playerx', 'playery');

    // teleport one player to another
    $commander->teleport(array('playerx', 'playery'));

    // locate a player
    $location = $commander->locate('playerx');  // -> array('x' => 157, 'y' => 50, 'z' => -54);

Currently these Commands are available
--------------------------------------

- say
- listPlayers
- locatePlayer
- teleport
- give
- setWeather
- setTime


Running the tests
-----------------
    bin/phpspec run

Author
------

- [<NAME>](http://twitter.com/griesx)

License
-------

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
{'fraction_non_alphanumeric': 0.18785796105383734, 'fraction_numerical': 0.014509354715540282, 'mean_word_length': 2.358974358974359, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '547144', 'n_tokens_mistral': 826, 'n_tokens_neox': 771, 'n_words': 216}