minecraft-control

0.0.1 • Public • Published

Minecraft Control

A simple Minecraft process runner

Example Usage

var minecraft = require('minecraft-control');
var game = new minecraft.Game({
  server: "./servers/minecraft_server.1.7.10.jar",
  world: "./worlds/example",
});

game.start(function(loadtime){
  console.log("Server started");

  setTimeout(function(){
    game.stop();
  }, 10000);
});

game.on("stop", function(){
  console.log("server stopped");
});

game.on("joined", function(player){
  console.log(player + " has joined the game!");
});

game.on("error", function(err){
  console.log(err);
});

License

MIT

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i minecraft-control

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • nightfly19