Minecraft server config
Server running on walle-vm08 under user "minecraft". Main server files in /home/minecraft/Minecraft/. Related files in /home/minecraft/. Server should always be running in screen session "minecraft" if the init.d script is used (see below). Unfortunately the 32-bit JRE doesn't seem to want to know about memory beyond 2GB which will limit the number of concurrent users - currently set at 20. Steve is planning on setting up a 64bit VM so we can migrate over soon.
Bukkit
Bukkit makes it very easy to install plugins - just drop a .jar file into ~/Minecraft/plugins/. List of plugins is at
http://dev.bukkit.org/. Beware as some plugins conflict with others. Poorly written ones can lag or crash the server.
As of 2012/2/2 the server is running CraftBukkit recommended build 1.1-R3. The following plugins are installed:
Essentials-Pre2.8.2.2 (
http://dev.bukkit.org/server-mods/essentials/) haven't looked too deeply into this but a friend who runs a server recommended it highly. CreeperHeal 4.3 (
http://dev.bukkit.org/server-mods/creeperheal-nitnelave/) used this before - it gradually repairs explosion damage from creepers tnt and fire. EssentialsXMPP * GeoIP (disabled due to outbound firewall limitations)
WorldGuard (2 zones so far: "spawn" is 50x50xHeight centred on 0,0 with restricted build permissions. "nopvp" is 500x500xHeight also centred on 0,0)
WorldEdit (used to support WorldGuard for area protection)
GroupManager (permissions manager)
ChopTree (wood blocks in a tree drop down when chopped)
BedTime (inactive players don't count against night sleeping, also gives users a /bed command to see who's awake)
Would like to get some other mods. One to cut trees properly instead of leaving floating treetops all over the place and possibly one to let players not drop their stuff when they die (don't want people murdering each other for resources etc).
init.d script
/etc/init.d/minecraft is a symlink to /home/minecraft/minecraft-init/minecraft. It's based on
http://github.com/Ahtenus/minecraft-init. Should bring up the server on reboot (tested). Needed screen from apt.
arguments:
start
stop
update (updates minecraft and bukkit, seems to work though no updates have arrived yet)
overview skynet (generates map of "skynet" world in ~/map but takes the server offline during render and took several minutes when I tested it)
help
rest of functions are untested, hope to test ramdisk soon
Overviewer
Generates the map files for web serving. I put up a demo at
http://www.skynet.ie/~acous/map/ until a regular render is setup, hopefully with a local webserver.
https://github.com/overviewer/Minecraft-Overviewer. Needed python, python-numpy, python-imaging, python-dev and gcc from apt to run.
Java
Currently using 32bit JRE from oracle until we migrate to a 64bit VM. Binary is at /home/minecraft/java/bin/java. Errored out if I tried to give it more than a 2048MB max heap size.
crontab
I threw this in the crontab as suggested by the init script:
02 05 * * * /etc/init.d/minecraft backup 55 04 * * * /etc/init.d/minecraft log-roll */30 * * * * /etc/init.d/minecraft to-disk