Morlok8k / MinecraftLandGenerator

Pregenerate Land in a SMP Minecraft Server
http://www.minecraftforum.net/topic/187737-minecraft-land-generator/
Do What The F*ck You Want To Public License
97 stars 20 forks source link

Custom server path does not work #16

Open VADemon opened 5 years ago

VADemon commented 5 years ago

Usage: java -jar MinecraftLandGenerator.jar x z [serverpath] [switches] serverpath : the path to the directory in which the server runs (takes precedence over the config file setting)

Config: ServerPath=.

The [serverpath] doesn't seem to work from command line. MLG checks for server.properties file with the path from config disregarding the startup argument.

Tried with: java -jar MinecraftLandGenerator.jar 15000 15000 folderA -i1024 -x-15000 -z-15000 and ./folderA/, folderA/ and C:/folderA/ - no success.

Morlok8k commented 5 years ago

looks like you are right. when the serverpath is on the command line, the variable gets rewritten by the config file.

For now, use the config file.