MCSuperServer

GzipFile

ParDoor

SR

ICR

MCSuperServer

Description

When the first user connects it starts the Minecraft server and when the last one leaves the Minecraft server is stopped to reduce memory and cpu usage. If you have servers that are only used occasionally or only by a small number of people then they are better of being super served. A super server uses very little memory and cpu and only starts the Minecraft server when users want it. This allows many Minecraft servers with different worlds on one machine provided they aren't all running at the same time. For example with only four users the most Minecraft servers that will be running will be four but many more can be super served.

  • When no users are connected only has one listening socket.
  • Uses the offical Minecraft server so no extra bugs or waiting for updates.
  • Very unlikely to break on each update to the offical Minecraft server because it wraps only the first two protocol packets.
  • Written in Python and therefore requires python installed. http://www.python.org/download/
  • Works on Posix systems such as Linux but has untested support for Windows. Email me if it works please.
  • Maybe in future support for an ".exe" without requiring Python installed.
  • Has support for scripting of console messages.
  • Handles signal teminate allowing the graceful shutdown of the Minecraft server for use with init.d scripts.

This was written for the offical Minecraft server http://www.minecraft.net/download but other Minecraft servers should work.

Files

mcsuperserver.py The python application
mcsuperserver.properties Automaticly created on first run. Contains settings for mcsuperserver.py in the same format as the server.properties file.
server.properties Read by mcsuperserver.py for settings for minecraft_server.jar.

How To Use

  • Copy the "mcsuperserver.py" file to your minecraft server directory.
  • Execute the "mcsuperserver.py" file by "python mcsuperserver.py" or by making it executable "chmod +x mcsuperserver.py" and then "./mcsuperserver.py".
  • Then connect with the Minecraft client on the default port which is 25555 by entering "localhost:25555" in the server address.

Summary

Current Version 0.06.02
Current Release 28th September 2012
Supported Platforms Posix and untested Windows
Python Libraries Standard ones that come with your system
Licence GPL3

Download

Your name
Your email address
Send me email about updates

   

This information is for internal use only.

MCSuperServerScript

Description

Adds multi-worlds to minecraft and gives users some operater commands.

  • Requires mcsuperserver.py from above in the same directory.
  • This script overloads some functions from mcsuperserver.py to change functionality.
  • While the MCSuperServer doesn't require editing, for this script it is recommended.
  • Worlds are changed by rewriting the server.properties file and 'stop'ing the server.
  • All scripting done by console output and input, so quite limited.
  • By default survial (gamemode=0 in server.properties) server users get teleport (tp).
  • By default creative (gamemode=1 in server.properties) server users get teleport (tp), give, time, gamemode, toggledownfall and xp.
  • Each subdirectory in the Minecraft server directory is assumed to be a world except ones that start with '.'.
  • Multiple servers sharing worlds supported by creating a empty (zero length) "../.minecraft.running.worlds.txt" file to prevent multiple opens to the same world.

Files

mcsuperserverscript.py The python application
mcsuperserver.py The python module
mcsuperserver.properties Automaticly created on first run. Contains settings for mcsuperserver.py in the same format as the server.properties file.
server.properties Read by mcsuperserver.py for settings for minecraft_server.jar.

How To Use

  • Copy the "mcsuperserverscript.py" and "mcsuperserver.py" file to your minecraft server directory.
  • Execute the "mcsuperserverscript.py" file by "python mcsuperserverscript.py" or by making it executable "chmod +x mcsuperserverscript.py" and then "./mcsuperserverscript.py".
  • Then connect with the Minecraft client on the default port which is 25555 by entering "localhost:25555" in the server address.
  • Enter chat mode by pressing 't' or whatever you've changed it to and type 'help' for the list of commands. Note there is no '/'.
  • Enter 't' then 'helpshort' for the list of one letter commands.
  • Enter 't' then 'w' or 'worlds' for a list of available worlds.
  • Enter 't' then 'l {name}' or 'world {name}' to change to the {name} world.
  • Enter 't' then 'd' for daytime. Creative servers only.
  • Enter 't' then 'n' for nighttime. Creative servers only.
  • Enter 't' then 'f' for toggledownfall. Creative servers only.
  • Enter 't' then 'g {mode}' for gamemode {mode}. Creative servers only.

Summary

Current Version 0.5
Current Release 2nd August 2012
Supported Platforms Posix and untested Windows
Python Libraries Standard ones that come with your system
Licence GPL3

Download

Your name
Your email address
Send me email about updates

   

This information is for internal use only.

Contacting the Author

Paul Andreassen
Email: paul @ andreassen com au
Web: http://wwww.andreassen.com.au or http://members.iinet.net.au/~paulone/mcsuperserver.html

Copyright 2012 Paul Andreassen