Based on http://dev.bukkit.org/server-mods/dota-minecraft-plugin/