initial commit
This commit is contained in:
5
go.mod
Normal file
5
go.mod
Normal file
@ -0,0 +1,5 @@
|
||||
module krumel.moe/serverwrapper
|
||||
|
||||
go 1.16
|
||||
|
||||
require github.com/pelletier/go-toml v1.9.1
|
||||
2
go.sum
Normal file
2
go.sum
Normal file
@ -0,0 +1,2 @@
|
||||
github.com/pelletier/go-toml v1.9.1 h1:a6qW1EVNZWH9WGI6CsYdD8WAylkoXBS5yv0XHlh17Tc=
|
||||
github.com/pelletier/go-toml v1.9.1/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
|
||||
12
serverwrapper.go
Normal file
12
serverwrapper.go
Normal file
@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/pelletier/go-toml"
|
||||
)
|
||||
|
||||
func main() {
|
||||
config, _ := toml.LoadFile("serverwrapper.toml")
|
||||
str, _ := config.ToTomlString()
|
||||
fmt.Println(str)
|
||||
}
|
||||
44
serverwrapper.toml
Normal file
44
serverwrapper.toml
Normal file
@ -0,0 +1,44 @@
|
||||
[general]
|
||||
java_cmd = "java"
|
||||
|
||||
[server]
|
||||
directory = "/home/minecraft/Valhelsia 3.1.6"
|
||||
forge = "forge-1.16.5-36.0.1.jar"
|
||||
jvm-args = [
|
||||
"-Xms20G",
|
||||
"-Xmx20G",
|
||||
"-XX:+UseG1GC",
|
||||
"-XX:+UnlockExperimentalVMOptions",
|
||||
"-XX:MaxGCPauseMillis=100",
|
||||
"-XX:+DisableExplicitGC",
|
||||
"-XX:TargetSurvivorRatio=90",
|
||||
"-XX:G1NewSizePercent=50",
|
||||
"-XX:G1MaxNewSizePercent=80",
|
||||
"-XX:G1MixedGCLiveThresholdPercent=50",
|
||||
"-XX:G1ReservePercent=20",
|
||||
"-XX:ConcGCThreads=2",
|
||||
"-XX:ParallelGCThreads=4",
|
||||
"-XX:InitiatingHeapOccupancyPercent=25",
|
||||
"-XX:+AlwaysPreTouch",
|
||||
"-Xloggc:gc.log",
|
||||
"-verbose:gc",
|
||||
"-XX:+PrintGCDetails",
|
||||
"-XX:+PrintGCDateStamps",
|
||||
"-XX:+PrintGCTimeStamps",
|
||||
"-XX:+UseGCLogFileRotation",
|
||||
"-XX:NumberOfGCLogFiles=5",
|
||||
"-XX:GCLogFileSize=1M"
|
||||
]
|
||||
jar-args = ["nogui"]
|
||||
port = 25500
|
||||
|
||||
[administration]
|
||||
jolokia = "/home/minecraft/ServerWrapper/jolokia-jvm-1.6.2-agent.jar"
|
||||
mccron-path = "/srv/mcrcon-0.7.1-linux-x86-64/./mcrcon"
|
||||
mccron-args = ["-p YiibUn8UzKBIQ52ZJu4P"]
|
||||
|
||||
[logging]
|
||||
stdout_excludes = [
|
||||
".*[RCON Client.*",
|
||||
".*[RCON Listener.*"
|
||||
]
|
||||
Reference in New Issue
Block a user