diff --git a/startServerLocally.ps1 b/startServerLocally.ps1 new file mode 100644 index 0000000..e6d3343 --- /dev/null +++ b/startServerLocally.ps1 @@ -0,0 +1,23 @@ +Write-Host "Trying to start server locally" + +if ($Args[0] -eq "-r") { + Write-Host "Rebuilding application" + $build = $true +} else { + Write-Host "No rebuild flag (-r) given. Starting directly..." + $build = $false +} + +if ($build) { + try { + .\gradlew Server:jar + } catch { + Write-Host "Gradle doesn't seem to be installed." + } +} + +try { + java -jar Server/build/libs/Server.jar -c .\configs\marvelheros.character.json -m.\configs\matchconfig_1.game.json -s .\configs\asgard.scenario.json -v +} catch { + Write-Host "Couldn't execute. Is Java installed?" +} \ No newline at end of file