Rewrite to avoid using broken bukkit configuration API.