Git Product home page Git Product logo

flags.sh's Introduction

flags.sh

A simple script generator to start your Minecraft servers with optimal flags.


Includes many configuration options such as Aikar's flags, automatic restarting, and Pterodactyl overhead calculation.

Inspired by startmc.sh, built with Blitz.js and Mantine UI.

๐Ÿ”จ Building

Ensure Yarn and Node.js are installed.

  1. Enter the directory containing the flags.sh source code in your terminal.
  2. Install the build dependencies via yarn install.
  3. Either start a live development environment, or build for production.
    • yarn run dev: Start a live development environment
    • yarn run export: Build for production to /out/

flags.sh's People

Contributors

encode42 avatar imgbot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flags.sh's Issues

[suggestion] Toggle for jdk.incubator.vector

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.

Create a API-REST

Create a API-REST to download very fast the code for sh

The api return the content of flag in a http request

Generation of a downloadable zip

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

[suggestion] add api and recommended flags

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

Add {{SERVER_JARFILE}} option instead of (something).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.

image

AutoRestart timer

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

Aikars frags now work on Java 11 server. HELP!

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.