MinecraftServerControl / mscs

Powerful command-line control for UNIX and Linux powered Minecraft servers
https://minecraftservercontrol.github.io
BSD 2-Clause "Simplified" License
485 stars 62 forks source link

mscs-jvm-args can't contain spaces #240

Closed zdimension closed 4 years ago

zdimension commented 4 years ago

If it does, the start command fails because the args aren't properly passed to perl, which read something like this:

-XX:Arg1 -XX:Arg2

as

perl -ne '....... -XX:Arg1' -XX:Arg2

giving the error

Unrecognized switch: -:Arg2    (-h will show valid options).

Problem is in file msctl, in getServerCommand when inserting the $JVM_ARGS variable in the perl call

sandain commented 4 years ago

Sorry for the slow response. Commit 7c4b4545c07e273a815135fc04c4d1ee3a140f1b should fix this issue.