diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 8bdef676..030018ea 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -25,6 +25,9 @@ jobs: mkdir -p ~/artifacts cp "2006Scape Client/target/client-1.0-jar-with-dependencies.jar" ~/artifacts/Client.jar cp "2006Scape Server/target/server-1.0-jar-with-dependencies.jar" ~/artifacts/Server.jar + cp "2006Scape Server/ServerConfig.Sample.json" ~/artifacts/ServerConfig.json + cp SinglePlayer.bat ~/artifacts/ + cp -r "2006Scape Server/plugins" ~/artifacts/ cp -r "2006Scape Server/data" ~/artifacts/ - name: Publish build to GH Actions uses: actions/upload-artifact@v2 diff --git a/SinglePlayer.bat b/SinglePlayer.bat new file mode 100644 index 00000000..652db3e8 --- /dev/null +++ b/SinglePlayer.bat @@ -0,0 +1,6 @@ +:: Runs The Server & FileServer +start cmd /k java -jar Server.jar -c ServerConfig.json +:: Used To Wait 6 Seconds Before Running The Client +PING localhost -n 6 >NUL +:: Starts The Client +start cmd /k java -jar Client.jar -s localhost \ No newline at end of file