18 lines
398 B
Python
18 lines
398 B
Python
import os
|
|
import gen
|
|
|
|
MIN_RAM = "1024M"
|
|
MAX_RAM = "2048M"
|
|
JVM_DEBUG_PORT = 25577
|
|
|
|
|
|
if os.getcwd().endswith("SpigotPluginBaseTools/"):
|
|
os.chdir("../")
|
|
|
|
os.chdir(gen.DEV_SERVER_PATH)
|
|
os.system(
|
|
"java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address={port} -Xms{min_ram} -Xmx{max_ram} -jar spigot.jar".format(
|
|
port=JVM_DEBUG_PORT, min_ram=MIN_RAM, max_ram=MAX_RAM
|
|
)
|
|
)
|