-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(admin): add the option to enable or disable GUI when installing …
…the script to an instance using the installer (#24) * feat(admin): add the option to enable or disable GUI when installing the script to an instance using the installer
- Loading branch information
Showing
9 changed files
with
77 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package constants | ||
|
||
/** | ||
* General shared constants | ||
* */ | ||
object SharedConstants { | ||
/** | ||
* Enable GUI mode when available (error messages, download loading indicator, etc...) for the sync script. | ||
* */ | ||
const val GUI_ENABLED_WHEN_AVAILABLE_DEFAULT = true | ||
|
||
/** | ||
* The argument name that will be used in the launch args in order to not use the GUI | ||
* will use `nogui` because it's the same as | ||
* [Minecraft Java Server](https://minecraft.fandom.com/wiki/Tutorials/Setting_up_a_server) | ||
* TODO: Might rename it to `--disable-gui`, also add a shorter version and better way to parse it | ||
* */ | ||
const val DISABLE_GUI_ARG_NAME = "nogui" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters