encode42 / flags.sh Goto Github PK
View Code? Open in Web Editor NEWA simple script generator to start your Minecraft servers with optimal flags.
Home Page: https://flags.sh
License: MIT License
A simple script generator to start your Minecraft servers with optimal flags.
Home Page: https://flags.sh
License: MIT License
Create a API-REST to download very fast the code for sh
The api return the content of flag in a http request
Today I wanted to take moisture from "AIKAR" for use, and as a result, the server startup does not work for me.
java -Xms9728M -Xmx9728M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar --nogui
Well, I think it's clear with the api, but with the recommended flags I would think about it
java -Xms128M -Xmx{{SERVER_MEMORY}}M -Dspt={{{SERVER_PORT}}} -XX:+UseSerialGC -Dlog4j2.formatMsgNoLookups=true -Dfml.queryResult=confirm -Dterminal.jline=false -Dterminal.ansi=true -DIReallyKnowWhatIAmDoingISwear=true -Duser.timezone=Europe/Moscow -jar -Dfile.encoding=UTF-8 {{{SERVER_JARFILE}}} nogui
Such as these flags
Today I've learned that Paper doesn't use the API that enabled this, so it's not needed. That this is basically for Pufferfish and some other forks.
Could there perhaps be a toggle or selection for type of server engine, so --add-modules=jdk.incubator.vector
is optional, or when they select Pufferfish, etc. that it includes it (so when we pick Paper it doesn't)?
Just a small suggestion for a tweak.
It's possible to add more flags option like the birdflop generator?
Change autorestart from
echo Server restarting... echo Press CTRL + C to stop. done
to
for i in 3 2 1; do printf 'Server restarting in %s... (press CTRL-C to exit)\n' "${i}" sleep 1 done done
This is useful not to spam Ctrl+C to shut down the server, but to have a time of 3 seconds to do it
Remove the "--nogui" from the velocity option in /src/data/environment/operatingSystem.ts
Having this option causes the velocity servers to crash. I tried fixing it myself, but my limited knowledge of typescript messed me up.
If there's one massive headache for macOS, it's the expectation that users will generally understand basic *nix skills in order to get a basic server running, it would kinda be cool if a zip file could be generated that would have a start.command
script inside of it, with the executable bit set on the file within.
Contents would also have to marginally be modified for this, mainly, adding a call to cd in order to take us to the directory where the command file is in order to be able to start the server. Doing so would allow mac users to download the zip, extract the command file from within into the server dir, and be able to double click the file to run it;
cd "`dirname $0`"
java -jar server.jar
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.