Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
fixed paths
Browse files Browse the repository at this point in the history
fixed paths
  • Loading branch information
mickoissicko committed Jan 26, 2024
1 parent 48870aa commit 3f0655f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions bin_arc/ussr-ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

app = Flask(__name__)

MC_FOLDER = 'bin/.mc/'
DISCORD_WEBHOOK_URL_FILE = '../config/webhook.txt'

def get_discord_webhook_url():
Expand All @@ -48,9 +47,12 @@ def index():
@app.route('/start')
def start():
send_discord_message('``server starting...``')
start_command = ['java', '-jar', '-Xms256M', '-Xmx5G', f'{MC_FOLDER}/server.jar']
subprocess.Popen(start_command, cwd=MC_FOLDER)


script_dir = os.path.dirname(os.path.abspath(__file__))
mc_dir = os.path.join(script_dir, '../bin/.mc')
start_command = ['java', '-jar', '-Xms256M', '-Xmx5G', 'nogui', os.path.join(mc_dir, 'server.jar')]
subprocess.Popen(start_command, cwd=mc_dir)

time.sleep(27)

send_discord_message('``server started``')
Expand Down
10 changes: 6 additions & 4 deletions bin_win/ussr-ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

app = Flask(__name__)

MC_FOLDER = 'bin/.mc/'
DISCORD_WEBHOOK_URL_FILE = '../config/webhook.txt'

def get_discord_webhook_url():
Expand All @@ -48,9 +47,12 @@ def index():
@app.route('/start')
def start():
send_discord_message('``server starting...``')
start_command = ['java', '-jar', '-Xms256M', '-Xmx5G', f'{MC_FOLDER}/server.jar']
subprocess.Popen(start_command, cwd=MC_FOLDER)


script_dir = os.path.dirname(os.path.abspath(__file__))
mc_dir = os.path.join(script_dir, '../bin/.mc')
start_command = ['java', '-jar', '-Xms256M', '-Xmx5G', 'nogui', os.path.join(mc_dir, 'server.jar')]
subprocess.Popen(start_command, cwd=mc_dir)

time.sleep(27)

send_discord_message('``server started``')
Expand Down

0 comments on commit 3f0655f

Please sign in to comment.