Browse Source

fix(minecraft): fix java ram assignment (#3147)

pull/3199/head
Christian 4 years ago
committed by Daniel Gibbs
parent
commit
1e78dbd926
  1. 4
      lgsm/config-default/config-lgsm/mcserver/_default.cfg

4
lgsm/config-default/config-lgsm/mcserver/_default.cfg

@ -14,6 +14,7 @@ javaram="1024" # -Xmx$1024M
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
fn_parms(){ fn_parms(){
parms="nogui" parms="nogui"
executable="java -Xmx${javaram}M -jar ${jarfile}"
} }
## Release Settings | https://docs.linuxgsm.com/game-servers/minecraft#release-settings ## Release Settings | https://docs.linuxgsm.com/game-servers/minecraft#release-settings
@ -151,7 +152,8 @@ glibc="null"
## Game Server Directories ## Game Server Directories
systemdir="${serverfiles}" systemdir="${serverfiles}"
executabledir="${serverfiles}" executabledir="${serverfiles}"
executable="java -Xmx${javaram}M -jar ${serverfiles}/minecraft_server.jar" jarfile="${serverfiles}/minecraft_server.jar"
executable="${jarfile}"
servercfgdir="${systemdir}" servercfgdir="${systemdir}"
servercfg="server.properties" servercfg="server.properties"
servercfgdefault="server.properties" servercfgdefault="server.properties"

Loading…
Cancel
Save