spigot-plugin-template/start_server.py
Harrison Deng 81bc122ae0 Removed script folder.
Better accomodates for use as git submodule.
2022-01-20 04:16:56 -06:00

13 lines
363 B
Python

import os
import gen
MIN_RAM="1024M"
MAX_RAM="2048M"
JVM_DEBUG_PORT = 25577
if (os.getcwd().endswith("scripts/")):
os.chdir("../")
os.chdir(gen.DEV_SERVER_PATH)
os.system("java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address={port} -Xms{minram} -Xmx{maxram} -jar spigot.jar".format(port = JVM_DEBUG_PORT, minram = MIN_RAM, maxram = MAX_RAM))