Skip to content
supermomonga edited this page Oct 26, 2013 · 12 revisions

This page describes you how to run craftbukkit and mckokoro as your local server.

Environment setup

Setup OS

  • Windows user
    • Clean up HDD and install Gentoo
  • Mac OS X user
    • ok
  • Linux user
    • ok

Install leiningen

  • Mac OS X user
    • brew install leiningen
  • Linux user
    • Use your package manager.

Install Minecraft

Go to the mojang website, and download Minecraft client.

Setup craftbukkit

Setting up craftbukkit is very 簡単.

Download bukkit.jar

mkdir bukkit
cd ./bukkit
wget http://cbukk.it/craftbukkit-dev.jar -O craftbukkit.jar

Create a startup script

touch ./run.sh
chmod +x ./run.sh
vim ./run.sh

Write down following lines.

#!/bin/bash
cd "$( dirname "$0" )"
java -Xmx1024M -jar craftbukkit.jar -o true

then, do :wq.

or just wget following gist.

wget https://gist.github.com/supermomonga/7113116/raw/run.sh
chmod +x ./run.sh

Setup mckokoro

Setting up mckokoro is socko socko kang tang.

Clone repository

cd /path/to/bukkit/
git clone [email protected]:akechi/mckokoro.git

Get dependency libraries

cd /path/to/bukkit/mckokoro/app
bundle --path .

Uberjar

leiningen is very 便利

cd /path/to/bukkit/mckokoro
lein uberjar

./mckokoro/target/mckokoro-1.0.0-SNAPSHOT.jar and ./mckokoro/target/mckokoro-1.0.0-SNAPSHOT-standalone.jar will be created.

Setup jar

Create plugins folder and move jar to there.

cd /path/to/bukkit/
mkdir plugins
cp ./mckokoro/target/mckokoro-1.0.0-SNAPSHOT-standalone.jar ./plugins/mckokoro.jar

Setup configuration file

Copy the default config file to your plugins folder.

cd /path/to/bukkit/
mkdir ./plugins/mckokoro
cp ./mckokoro/src/plugin.yml ./plugins/mckokoro/config.yml

Then, write a path of main.rb of mckokoro git directory.

vim ./plugins/mckokoro/config.yml
path:
  ruby:
    script: "file:///path/to/bukkit/mckokoro/app/main.rb"

:wq!!

Run and connect to the your local server

Run craftbukkit server

cd /path/to/bukkit
./run.sh

Connect to server

Craftbukkit will run with 25565 port by default.

Start the Minecraft client and just connect to multiserver localhost:25565.

Done!

Wow! Now you can play Minecraft with mckokoro in your local server!