Added test server stuff.

Updated gitignore.
This commit is contained in:
Harrison Deng 2020-04-24 15:44:12 -05:00
parent 9d7ca0f093
commit 44bada95a3
7 changed files with 67 additions and 0 deletions

6
.gitignore vendored
View File

@ -125,3 +125,9 @@ buildNumber.properties
#Additional
**/*.code-workspace
local_tools
#Test server stuff
test-server/*
!test-server/*.ps1
!test-server/bukkit.yml
!test-server/paper-195.jar

42
test-server/bukkit.yml Normal file
View File

@ -0,0 +1,42 @@
# This is the main configuration file for Bukkit.
# As you can see, there's actually not that much to configure without any plugins.
# For a reference for any variable inside this file, check out the Bukkit Wiki at
# https://www.spigotmc.org/go/bukkit-yml
#
# If you need help on this file, feel free to join us on irc or leave a message
# on the forums asking for advice.
#
# IRC: #spigot @ irc.spi.gt
# (If this means nothing to you, just go to https://www.spigotmc.org/go/irc )
# Forums: https://www.spigotmc.org/
# Bug tracker: https://www.spigotmc.org/go/bugs
settings:
allow-end: true
warn-on-overload: true
permissions-file: permissions.yml
update-folder: update
plugin-profiling: false
connection-throttle: 4000
query-plugins: true
deprecated-verbose: default
shutdown-message: Server closed
minimum-api: none
spawn-limits:
monsters: 70
animals: 10
water-animals: 15
ambient: 15
chunk-gc:
period-in-ticks: 600
ticks-per:
animal-spawns: 400
monster-spawns: 1
water-spawns: 1
ambient-spawns: 1
autosave: 6000
aliases: now-in-commands.yml
worlds:
world:
generator: IslandSurvivalCraft

View File

@ -0,0 +1,8 @@
if (Test-Path ./pid.temp) {
$sID = Get-Item -Path ./pid.temp | Get-Content -Tail 1
if (Get-Process -Id $sID -ErrorAction SilentlyContinue) {
Stop-Process -Id $sID
}
Remove-Item "./pid.temp"
}

View File

@ -0,0 +1,4 @@
write-Output "Deleting previous world if there was one..."
remove-Item -Recurse world -Force -ErrorAction Ignore
write-Output "Attempting to copy plugin jar to plugins folder..."
copy-Item -Path "..\target\IslandSurvivalCraft-1.0.0.jar" -Destination "plugins\IslandSurvivalCraft-1.0.0.jar"

BIN
test-server/paper-195.jar Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
Start-Process java -ArgumentList "-Xms512M", "-Xmx1G", "-jar", "paper-195.jar", "nogui"

View File

@ -0,0 +1,6 @@
write-Output "Attempting to start Paper test server."
$SID = Start-Process java -ArgumentList "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=25566", "-Xms512M", "-Xmx1G", "-jar", "paper-195.jar", "nogui" -PassThru
$SID = $SID.Id
write-Output "Process started. PID is: $SID"
$SID | Out-File -FilePath "pid.temp"