Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Set title
- $Host.UI.RawUI.WindowTitle = "Paper Test Server"
- # Variables for moving files
- $EXMCore = $false
- $EXMCorePath = "E:\DOCUMENT\REPOSITORY\EXMCore\build\libs\"
- $MoarHarder = $false
- $MoarHarderPath = "E:\DOCUMENT\REPOSITORY\MoarHarder\build\libs\"
- $AutoWhitelist = $false
- $AutoWhitelistPath = "E:\DOCUMENT\REPOSITORY\AutoWhitelist\build\libs"
- # Move plugin files
- If ( $EXMCore -and (Test-Path -Path $EXMCorePath -Include "EXMCore-*.jar" -PathType Leaf) )
- {
- Write-Host "Moving EXMCore..."
- }
- If ( $MoarHarder -and (Test-Path -Path $MoarHarderPath -Include "MoarHarder-*.jar" -PathType Leaf) )
- {
- Write-Host "Moving MoarHarder..."
- }
- if ( $AutoWhitelist -and (Test-Path -Path $AutoWhitelistPath -Include "AutoWhitelist-*jar" -PathType Leaf) )
- {
- Write-Host "Moving AutoWhitelist..."
- }
- # Find Paper JAR file
- $JAR = Get-ChildItem -Path . -Filter "paper-*.jar"
- # Prepare argument line
- $Argument = " -Xms2G -Xmx2G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -Dfile.encoding=UTF8"
- $Argument = $Argument + " -jar " + $JAR + " nogui"
- # Run test server
- Start-Process -NoNewWindow java $Argument
Add Comment
Please, Sign In to add comment