Skip to content

Instantly share code, notes, and snippets.

@JourneyOver
Last active July 2, 2020 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JourneyOver/72acefce3ecc1f34746ec810cb7464ec to your computer and use it in GitHub Desktop.
Save JourneyOver/72acefce3ecc1f34746ec810cb7464ec to your computer and use it in GitHub Desktop.
## ===========================================================
## MULTICRAFT CONFIGURATION TO ADD .JAR TYPES
## To simplify the adding of the JAR in less time than ever.
## ===========================================================
[config]
name = [Forge] 1.16.1
source = https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.1-32.0.44/forge-1.16.1-32.0.44-universal.jar
configSource = https://gist.githubusercontent.com/JourneyOver/72acefce3ecc1f34746ec810cb7464ec/raw/forge.jar.conf
category = Forge
[encoding]
#encode = system
#decode = system
#fileEncoding = latin-1
[settings]
logFile = server.log
## Uncomment the following to rotate the log at 20MB
#logRotateSize = 20971520
## Keep 5 log files
logBackupCount = 5
## Check the log size every 60 seconds
logRotateCheckInterval = 60000
## Copy instead of move log to log.1, vanilla Minecraft requires this
logPersistent = True
##forceTemplate = forge-1.15.2-31.1.46
[parse_connect]
start=^(?P<name>.+?)\s*\[[\w.-]*/(?P<ip>[^\]]*?)(:(?P<port>[0-9]+))?\]\s*logged in
## ===========================================================
## MULTICRAFT CONFIGURATION TO ADD .JAR TYPES
## To simplify the adding of the JAR in less time than ever.
## ===========================================================
[config]
name = [Paper] 1.16.1
source = https://papermc.io/api/v1/paper/1.16.1/43/download
configSource = https://gist.githubusercontent.com/JourneyOver/72acefce3ecc1f34746ec810cb7464ec/raw/paper.jar.conf
category = Mods
[encoding]
encode = utf-8
decode = utf-8
fileEncoding = latin-1
[start]
command = "{JAVA}" -Xmx{MAX_MEMORY}M -Xms{START_MEMORY}M -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:G1MixedGCLiveThresholdPercent=35 -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -Dusing.aikars.flags=mcflags.emc.gs -jar "{JAR}" nogui {PARAMS}
[force_config]
configFile = server.properties
newline = \n
search1 = server-ip
replace1 = server-ip={IP}
search2 = server-port
replace2 = server-port={PORT}
search3 = max-players
replace3 = max-players={MAX_PLAYERS}
[parse_log]
start=^(?P<time>(:?[-\d]+ )?\[?[:\d]+\]?)\s+\[?(?P<type>[^]<>]+)[\]>]\:?\s+(:?\[(:?Minecraft-)?(:?Server)\]\s+)?(?P<line>.*)$
[parse_startup]
start=^\s*Done
important=true
[parse_players]
listSplit=\s*,\s*
listLine=(?P<name>.*)
start=^(?:Connected\s*players|Online \([\d]+[^)]*\)):\s*(?P<v_listStr_append>.*)$
start1=^There are (?P<v_maxDataLines>\d+)/\d+ players
data=^(?P<v_listStr_append>.+)$
trigger=list
important=true
isList=true
maxLines=2
maxDataLines=0
[parse_chat]
start=^(?P<source>\[[^\]]+\])?\s*<(?P<sender>[^>]*)>\s*(?P<message>.*)$
[parse_command]
shortStart=(?:tried|issued server) command
start=^(?P<sender>.+)\s(?:tried|issued\sserver)\scommand:\s*(?P<command>.*)$
important=true
[parse_connect]
shortStart=logged in with entity id \d+ at
start=^(?P<name>.+?)\s*\[/(?P<ip>[^\]:]*)(:?(?P<port>[0-9]+)?)\]\s*logged in
start1=^(?P<name>.+)(?P<ip>\s+)logged in
[parse_disconnect]
shortStart=(lost connection|Kick(ing|ed))
start=^(?P<name>.+)\slost connection:\s*(?P<reason>.*)$
start1=^CONSOLE:\s*Kicking\s(?P<name>.+)$
start2=Kicked\s(?P<name>.+) from the game\s*$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment