Skip to content

nightfly19/minecraft-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple Minecraft process runner written for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published