Move ram config to minecraft.env
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
#! nix-shell -p javaPackages.compiler.openjdk17
|
||||
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-25.11
|
||||
|
||||
java -Xmx8192M -Xms6144M -jar minecraft_server.jar nogui
|
||||
source /home/h3lp/mineserver/minecraft.env
|
||||
|
||||
java -Xmx${MEMORY_MAX}M -Xms${MEMORY_MIN}M -jar minecraft_server.jar nogui
|
||||
|
||||
read -rp "Pack and publish world? [y/N] " answer
|
||||
if [[ "$answer" =~ ^[Yy]$ ]]; then
|
||||
|
||||
Reference in New Issue
Block a user