Releases: GarnServo/mc-startup-script
Releases · GarnServo/mc-startup-script
MC Startup Script v1.3.3
Improvements
- CPU/RAM usage during runtime reduced.
- Time to load reduced.
- I/O ops during initial setup greatly reduced.
- File size of the script slightly reduced.
All while retaining the same functionality and error handling.
MC Startup Script v1.3.1
New Features
- [v1.3.0] Added Discord webhook integration.
If configured, this script will send start/stop notifications to a Discord channel. - [v1.3.0] Added configuration file version checking/updating.
When there is a minor change (v.X.3.X) which adds new variables to the config file, initial setup will run again.
Bug Fixes
- [v1.3.0] Fixed an issue with JVM args.
If conditions were right, the args could continue writing to the file, resulting in multiple copies of the same flags being called. - [v1.3.1] Included Discord webhook configuration status in the config checks.
When server is starting, or initial setup is confirming config, the readout will display Discord webhook configuration status.
MC Startup Script v1.2.1
Bug Fixes
- Fixed version checking.
Formerly only checked less/greater than, not the equals condition.
MC Startup Script v.1.2.0
New Features
- Added auto-updater.
Script checks GitHub for the latest version and queries user whether to download or skip. Seamlessly downloads and restarts.
Functionality
First Launch/Initial Setup
- Prompts user for server .jar filename. Checks if the file exists.
- Prompts user to allocate initial and maximum RAM for the server. Checks if entry is a valid value.
- Queries user whether the server should auto-restart or not.
- Queries user whether server should use pre-configured JVM arguments. Regardless of result, will generate file for flag storage.
- Queries user whether to launch with GUI.
- Lets user confirm choices. If confirmed, continue to normal startup. If rejected, will restart initial configuration.
- Stores configuration in /config/StartupScript.conf, and JVM args in /config/jvm_args.txt.
- Generates auto-accepted EULA.
Normal Startup
- Checks for updates to this script, queries user whether to auto-update or skip.
- Checks for config folder, config file, and sets restart counter. If config is missing, reverts back to initial setup.
- Checks for EULA, if non-existent, creates accepted eula.txt.
- Reads script config file and stores contents as environment variables.
- Displays configuration to user and initialises the server.
- Checks for JVM arguments file, if non-existent, will create one with optimised flags. If it exists, loads the args into an environment variable.
- Checks auto-restart config to decide launch path.
Auto-Restart Enabled
- Launches server and changes console title to the configurable title + restart count.
- Upon crash or restart, increments the restart counter and reloads configuration + JVM flags.
Auto-Restart Disabled
- Launches server and changes console title to the configurable title.
- Upon crash or restart, prompts user whether to restart or exit.
Planned
- Improved text formatting
MC Startup Script v1.1.0
New Features
- Added version checking, with an update prompt if one is available.
Functionality
First Launch/Initial Setup
- Prompts user for server .jar filename. Checks if the file exists.
- Prompts user to allocate initial and maximum RAM for the server. Checks if entry is a valid value.
- Queries user whether the server should auto-restart or not.
- Queries user whether server should use pre-configured JVM arguments. Regardless of result, will generate file for flag storage.
- Queries user whether to launch with GUI.
- Lets user confirm choices. If confirmed, continue to normal startup. If rejected, will restart initial configuration.
- Stores configuration in /config/StartupScript.conf, and JVM args in /config/jvm_args.txt.
- Generates auto-accepted EULA.
Normal Startup
- Checks for updates to this script.
- Checks for config folder, config file, and sets restart counter. If config is missing, reverts back to initial setup.
- Checks for EULA, if non-existent, creates accepted eula.txt.
- Reads script config file and stores contents as environment variables.
- Displays configuration to user and initialises the server.
- Checks for JVM arguments file, if non-existent, will create one with optimised flags. If it exists, loads the args into an environment variable.
- Checks auto-restart config to decide launch path.
Auto-Restart Enabled
- Launches server and changes console title to the configurable title + restart count.
- Upon crash or restart, increments the restart counter and reloads configuration + JVM flags.
Auto-Restart Disabled
- Launches server and changes console title to the configurable title.
- Upon crash or restart, prompts user whether to restart or exit.
Planned
- Improved text formatting
MC Startup Script v1.0.0
Initial Release
Not feature-complete, but is production-ready.
First Launch/Initial Setup
- Prompts user for server .jar filename. Checks if the file exists.
- Prompts user to allocate initial and maximum RAM for the server. Checks if entry is a valid value.
- Queries user whether the server should auto-restart or not.
- Queries user whether server should use pre-configured JVM arguments. Regardless of result, will generate file for flag storage.
- Queries user whether to launch with GUI.
- Lets user confirm choices. If confirmed, continue to normal startup. If rejected, will restart initial configuration.
- Stores configuration in /config/StartupScript.conf, and JVM args in /config/jvm_args.txt.
- Generates auto-accepted EULA.
Normal Startup
- Checks for config folder, config file, and sets restart counter. If config is missing, reverts back to initial setup.
- Checks for EULA, if non-existent, creates accepted eula.txt.
- Reads script config file and stores contents as environment variables.
- Displays configuration to user and initialises the server.
- Checks for JVM arguments file, if non-existent, will create one with optimised flags. If it exists, loads the args into an environment variable.
- Checks auto-restart config to decide launch path.
Auto-Restart Enabled
- Launches server and changes console title to the configurable title + restart count.
- Upon crash or restart, increments the restart counter and reloads configuration + JVM flags.
Auto-Restart Disabled
- Launches server and changes console title to the configurable title.
- Upon crash or restart, prompts user whether to restart or exit.