|
|
@ -13,7 +13,7 @@ from tqdm import tqdm
|
|
|
|
class Parameters:
|
|
|
|
class Parameters:
|
|
|
|
root_dir = './servers/'
|
|
|
|
root_dir = './servers/'
|
|
|
|
proxy_version = "1.20"
|
|
|
|
proxy_version = "1.20"
|
|
|
|
minecraft_version = '1.20.5'
|
|
|
|
minecraft_version = '1.20.6'
|
|
|
|
eula_agreement = 'true'
|
|
|
|
eula_agreement = 'true'
|
|
|
|
|
|
|
|
|
|
|
|
backend_names = ['alpha', 'beta']
|
|
|
|
backend_names = ['alpha', 'beta']
|
|
|
@ -101,9 +101,9 @@ def create_backend_server(name, port, parameters):
|
|
|
|
|
|
|
|
|
|
|
|
# Download the latest paper for the version and place it in the server folder
|
|
|
|
# Download the latest paper for the version and place it in the server folder
|
|
|
|
server_jar = "paper.jar"
|
|
|
|
server_jar = "paper.jar"
|
|
|
|
#download_paper_build("paper", parameters.minecraft_version,
|
|
|
|
download_paper_build("paper", parameters.minecraft_version,
|
|
|
|
# get_latest_paper_build_number("paper", parameters.minecraft_version),
|
|
|
|
get_latest_paper_build_number("paper", parameters.minecraft_version),
|
|
|
|
# f"{server_dir}/{server_jar}")
|
|
|
|
f"{server_dir}/{server_jar}")
|
|
|
|
|
|
|
|
|
|
|
|
# Create eula.text and set eula=true
|
|
|
|
# Create eula.text and set eula=true
|
|
|
|
with open(server_dir + "/eula.txt", "w") as file:
|
|
|
|
with open(server_dir + "/eula.txt", "w") as file:
|
|
|
@ -175,9 +175,9 @@ def create_proxy_server(parameters):
|
|
|
|
|
|
|
|
|
|
|
|
# Download the latest paper for the version and place it in the server folder
|
|
|
|
# Download the latest paper for the version and place it in the server folder
|
|
|
|
proxy_jar = "waterfall.jar"
|
|
|
|
proxy_jar = "waterfall.jar"
|
|
|
|
#download_paper_build("waterfall", parameters.proxy_version,
|
|
|
|
download_paper_build("waterfall", parameters.proxy_version,
|
|
|
|
# get_latest_paper_build_number("waterfall", parameters.proxy_version),
|
|
|
|
get_latest_paper_build_number("waterfall", parameters.proxy_version),
|
|
|
|
# f"{server_dir}/{proxy_jar}")
|
|
|
|
f"{server_dir}/{proxy_jar}")
|
|
|
|
|
|
|
|
|
|
|
|
# Create the config.yml
|
|
|
|
# Create the config.yml
|
|
|
|
with open(server_dir + "/config.yml", "w") as file:
|
|
|
|
with open(server_dir + "/config.yml", "w") as file:
|
|
|
|