Documentation ¶
Overview ¶
Package containing all CLI commands. Usually, most unimportant logic before or after a command is here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Aikars = []string{
"-XX:+UseG1GC",
"-XX:+ParallelRefProcEnabled",
"-XX:MaxGCPauseMillis=200",
"-XX:+UnlockExperimentalVMOptions",
"-XX:+DisableExplicitGC",
"-XX:+AlwaysPreTouch",
"-XX:G1HeapWastePercent=5",
"-XX:G1MixedGCCountTarget=4",
"-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",
}
Aikars defines aikars flags. See https://docs.papermc.io/paper/aikars-flags for more info.
View Source
var LargeMemFlags = []string{
"-XX:G1NewSizePercent=40",
"-XX:G1MaxNewSizePercent=50",
"-XX:G1HeapRegionSize=16M",
"-XX:G1ReservePercent=15",
"-XX:InitiatingHeapOccupancyPercent=20",
}
LargeMemFlags are used if allocated memory is bigger than 12 GB.
View Source
var SmallMemFlags = []string{
"-XX:G1NewSizePercent=30",
"-XX:G1MaxNewSizePercent=40",
"-XX:G1HeapRegionSize=8M",
"-XX:G1ReservePercent=20",
"-XX:InitiatingHeapOccupancyPercent=15",
}
SmallMemFlags are used if allocated memory is smaller than 12 GB.
Functions ¶
func EulaCommand ¶
func EulaCommand(cCtx *cli.Context) error
func GeyserCommand ¶
func GeyserCommand(cCtx *cli.Context) error
func ScriptCommand ¶
func ScriptCommand(cCtx *cli.Context) error
func UpdateCommand ¶ added in v0.11.0
func UpdateCommand(cCtx *cli.Context) error
func ValidateOption ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
These commands just get the url, download the jarfile, and checksum it.
|
These commands just get the url, download the jarfile, and checksum it. |
The commands for the plugin manager.
|
The commands for the plugin manager. |
generatecmds
pap plugin generate definitions.
|
pap plugin generate definitions. |
All the commands for the properties command.
|
All the commands for the properties command. |
Click to show internal directories.
Click to hide internal directories.