spigot-plugin-template/scripts/start_server.py
2021-04-01 16:21:00 -05:00

11 lines
269 B
Python

import os
import gen
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} -jar spigot.jar".format(port = JVM_DEBUG_PORT))