encode42 / flags.sh

A simple script generator to start your Minecraft servers with optimal flags.
https://flags.sh
MIT License
150 stars 21 forks source link

Add {{SERVER_JARFILE}} option instead of (something).jar #2

Open Teslicek opened 2 years ago

Teslicek commented 2 years ago

When using pterodactyl, I sometimes need to change the jarfile (and java flags) for the server.

That's why I suggest to add a RESULT option, something like "Pterodactyl", that would basically replace (something).jar for {{SERVER_JARFILE}}.

Pterodactyl automatically replaces {{SERVER_JARFILE}} with the name of the file you add in the panel.

image

encode42 commented 2 years ago

There's already a "Pterodactyl" option in the advanced memory options modal, I'll look into replacing the filename input if said option is enabled.

encode42 commented 1 year ago

Added in the v2 rewrite

(issue will be closed when it's released)

TekExplorer commented 11 months ago

@encode42 Would recommend doing the same thing with the memory arguments, to use whatever the pterodactyl server has, and sets -XX:MaxRAMPercentage=95.0 which will use at most 95% of the available ram.