Skip to content

Commit 153f4cf

Browse files
vinc3nzHexeption
authored andcommitted
Adding Server Support
Credit by @jacobo-mc
1 parent 1d7370f commit 153f4cf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ task runclient(type: JavaExec) {
9494
workingDir 'run'
9595
}
9696

97+
98+
9799
task setup() {
98100
group = "MCP"
99101
description = "Setups the dev workspace"
@@ -116,6 +118,16 @@ task copyAssets {
116118
}
117119
}
118120

121+
task runserver(type: JavaExec) {
122+
mkdir 'runserver'
123+
group = "MCP"
124+
description = "Runs the server"
125+
standardInput = System.in
126+
classpath sourceSets.main.runtimeClasspath
127+
main 'net.minecraft.server.Main'
128+
workingDir 'runserver'
129+
}
130+
119131
idea.project.settings {
120132
runConfigurations {
121133
"Minecraft"(Application) {

0 commit comments

Comments
 (0)