0.0.1 • Published 10 years ago

minecraft-control v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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