spigot-plugin-template/scripts/start_server.py

11 lines
269 B
Python
Raw Normal View History

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))