Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -Boot
- -Pre-phase
- -Declare consoleName = Console Master
- -Declare consoleVersion = 1.0
- -Declare prefix = consoleName + consoleVersion (i.e. Console Master 1.0)
- -Change console title to prefix
- -Post-phase
- -If the information for the server jar is missing OR If the information for the server Minecraft version is missing, go to first time setup menu
- -If this information does exist, move on to the main menu
- -If the console color information (this is created by the user) exists, then set the color for the entire console using the information
- -First Time Setup
- -Change console title to prefix + Setup (Jar: N/A, MC N/A)
- -Welcome the user to the console ("Welcome to Console Master 1.0!)
- -Prompt the user to enter the name of the server jar file
- -Prompt the user to enter the minecraft version the user jar is made for
- -Send the java arguments "java -Xms1G -Xmx1G -jar nameOfServerJar.jar -o true" to the basic information file
- -Ask user if they want to customize the console colors
- -Check if they say Yes (Y/y) or No (N/n), if they don't, tell them to enter vaild arguments
- -If they say yes, move on to the color selection menu
- -Color Selection
- -Dsiplay all possible colors and what format to enter them information
- -Prompt user to enter their color choices
- -Save the data to the basic information file, then move on to the main menu as well as set the colors
- -If they say no, move on to the main menu after 5 seconds
- -Main Menu
- -Display all possible operations
- 1.Start the Server
- 2.Settings
- 3.Exit
- -If the user selects 1, move on to the server process
- -If the user selects 2, move on to the settings menu
- -If the user selects 3, close the console
- -If the user selects anything else, tell them they need to select a vaild operations
- -Server Process
- -Startup Phase
- -Change title to prefix + Minecraft Server Running
- -Indicate the start of server logs with a line
- -Check for Ngrok
- -If Ngrok is NOT activte, tell the user that it is not active and that it will start Ngrok
- -Start Ngrok with a custom title in ANOTHER console since Ngrok has its own menu
- -If Ngrok IS active, tell the user that it is active and it doesn't need to be started again
- -Gather the java arguments from the basic information file to run and alert the user of this
- -Once collected, alert the user that arguments are collected and are executed
- -Display the log from the server
- -Shutdown Phase
- *******This only executes once the server returns a finished signal
- -Change title to prefix + Minecraft Server Running
- -Indicate the end of server logs with a line
- -Ask the user if they want to restart the server (Yes/No)
- -If the user says yes, then rerun the server startup process
- -If the user says no, then ask if they want to close the console
- -If they say yes, then ask if they want to close Ngrok aswell
- -If they say yes, then alert the user that Ngrok is closing
- -Once Ngrok is closed, alert the user that it is closed
- -Prompt the user to press any button to close the console
- -Close the console
- -If they say no, then leave Ngrok alone and prompt the user to press any button to close the console
- -Close the console
- -If they say no, then ask if they want ONLY to close Ngrok
- -If they say yes, then leave the console alone and just close Ngrok and alert the user that it is closed
- -Then move back to the main menu after 5 seconds
- -If they say no, then return to the main menu after 5 seconds
- -Settings Menu
- -Display all possible operations
- 1.Coloring - Set The Color Scheme
- 2.Change Minecraft Version - Change What Version of Minecraft the Server is Using
- 3.RAM Allocation - Set RAM Allocation (Advanced)
- 4.Custom Arguments - Set custom arguments besides the RAM! (Advanced)
- 5.Factory Reset - [!!] Resets all settings back to first time setup
- 6.Back To Main Menu
- -If the user selects 1, move on to coloring selection just like in first time setup (EXCEPT that when the user finishes, they are returned to the settings menu)
- -If the user selects 2, move on to the minecraft version changing process
- -If the user selects 3, move on to the RAM allocation setup
- -If the user selects 4, move on to the custom arguments setup
- -If the user selects 5, move on to the factory reset process
- -If the user selects 6, return back to the main menu
- -If the user selects anything else, tell them they need to select a vaild operations
- -Minecraft Version Changing
- -Prompt the user to enter a new Minecraft version
- -If the version is the same, tell the user they they have entered the same version number as before, then ask them again to enter a new one
- -Save the new version to the basic information file
- -Return to settings menu after 5 seconds
- -RAM Allocation Setup
- -Prompt the user to enter the minimum amount of RAM in Megabytes (M) or Gigabytes (G)
- -Then prompt the user to enter the maximum amount of RAM in Megabytes (M) or Gigabytes (G)
- -Save this data to the arguments file and tell the user that the data is saved
- -Move on to settings menu after 5 seconds
- -Custom Arguments Setup
- -Warn the user that they should only change the arguments if they know what they are doing
- -Display the user's current arugments taken from the arguments file
- -Ask the user are they sure that they want to change these arguments
- -If yes, then ask them enter new arguments, while displaying a the old arguments
- -Once the user wants to save, ask are they sure they want to save the new settings
- -If yes, then write over the old settings and save the new ones in the arguments file
- -Once saved, then move back to the settings menu after 5 seconds
- -If no, then allow the user to make chanages to the new arguments
- -If no, then return to the settings menu after 5 seconds
- -Factory Reset
- -Warn the user that ALL settings will be lost and they would have to set up the console again; then ask do they want to proceed
- -If yes, then begin to erase all files and reset all variables
- -Once fully reset, move on to first time setup after 5 seconds
- -If no, then return to settings menu after 5 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement