-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminecraft-velocity-template.json
88 lines (88 loc) · 8.99 KB
/
minecraft-velocity-template.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"name": "minecraft-velocity-server",
"display": "velocity - minecraft server",
"type": "minecraft-java",
"install": [
{
"files": [
"https://papermc.io/api/v2/projects/velocity/versions/${server-version}/builds/${build-number}/downloads/velocity-${server-version}-${build-number}.jar"
],
"type": "download"
},
{
"source": "velocity-*.jar",
"target": "server.jar",
"type": "move"
},
{
"target": "velocity.toml",
"text": "# Config version. Do not change this\nconfig-version = \"1.0\"\n\n# What port should the proxy be bound to? By default, we'll bind to all addresses on port 25577.\nbind = \"${server-address}:${server-port}\"\n\n# What should be the MOTD? This gets displayed when the player adds your server to\n# their server list. Legacy color codes and JSON are accepted.\nmotd = \"	add3A Velocity Server\"\n\n# What should we display for the maximum number of players? (Velocity does not support a cap\n# on the number of players online.)\nshow-max-players = 500\n\n# Should we authenticate players with Mojang? By default, this is on.\nonline-mode = true\n\n# If client's ISP/AS sent from this proxy is different from the one from Mojang's\n# authentication server, the player is kicked. This disallows some VPN and proxy\n# connections but is a weak form of protection.\nprevent-client-proxy-connections = false\n\n# Should we forward IP addresses and other data to backend servers?\n# Available options:\n# - \"none\": No forwarding will be done. All players will appear to be connecting\n# from the proxy and will have offline-mode UUIDs.\n# - \"legacy\": Forward player IPs and UUIDs in a BungeeCord-compatible format. Use this\n# if you run servers using Minecraft 1.12 or lower.\n# - \"bungeeguard\": Forward player IPs and UUIDs in a format supported by the BungeeGuard\n# plugin. Use this if you run servers using Minecraft 1.12 or lower, and are\n# unable to implement network level firewalling (on a shared host).\n# - \"modern\": Forward player IPs and UUIDs as part of the login process using\n# Velocity's native forwarding. Only applicable for Minecraft 1.13 or higher.\nplayer-info-forwarding-mode = \"NONE\"\n\n# If you are using modern or BungeeGuard IP forwarding, configure a unique secret here.\nforwarding-secret = \"\"\n\n# Announce whether or not your server supports Forge. If you run a modded server, we\n# suggest turning this on.\n# \n# If your network runs one modpack consistently, consider using ping-passthrough = \"mods\"\n# instead for a nicer display in the server list.\nannounce-forge = false\n\n# If enabled (default is false) and the proxy is in online mode, Velocity will kick\n# any existing player who is online if a duplicate connection attempt is made.\nkick-existing-players = false\n\n# Should Velocity pass server list ping requests to a backend server?\n# Available options:\n# - \"disabled\": No pass-through will be done. The velocity.toml and server-icon.png\n# will determine the initial server list ping response.\n# - \"mods\": Passes only the mod list from your backend server into the response.\n# The first server in your try list (or forced host) with a mod list will be\n# used. If no backend servers can be contacted, Velocity won't display any\n# mod information.\n# - \"description\": Uses the description and mod list from the backend server. The first\n# server in the try (or forced host) list that responds is used for the\n# description and mod list.\n# - \"all\": Uses the backend server's response as the proxy response. The Velocity\n# configuration is used if no servers could be contacted.\nping-passthrough = \"DISABLED\"\n\n# If not enabled (default is true) player IP addresses will be replaced by <ip address withheld> in logs\nenable-player-address-logging = true\n\n[servers]\n# Configure your servers here. Each key represents the server's name, and the value\n# represents the IP address of the server to connect to.\nlobby = \"127.0.0.1:30066\"\nfactions = \"127.0.0.1:30067\"\nminigames = \"127.0.0.1:30068\"\n\n# In what order we should try servers when a player logs in or is kicked from a server.\ntry = [\n \"lobby\"\n]\n\n[forced-hosts]\n# Configure your forced hosts here.\n\"lobby.example.com\" = [\n \"lobby\"\n]\n\"factions.example.com\" = [\n \"factions\"\n]\n\"minigames.example.com\" = [\n \"minigames\"\n]\n\n[advanced]\n# How large a Minecraft packet has to be before we compress it. Setting this to zero will\n# compress all packets, and setting it to -1 will disable compression entirely.\ncompression-threshold = 256\n\n# How much compression should be done (from 0-9). The default is -1, which uses the\n# default level of 6.\ncompression-level = -1\n\n# How fast (in milliseconds) are clients allowed to connect after the last connection? By\n# default, this is three seconds. Disable this by setting this to 0.\nlogin-ratelimit = 3000\n\n# Specify a custom timeout for connection timeouts here. The default is five seconds.\nconnection-timeout = 5000\n\n# Specify a read timeout for connections here. The default is 30 seconds.\nread-timeout = 30000\n\n# Enables compatibility with HAProxy's PROXY protocol. If you don't know what this is for, then\n# don't enable it.\nhaproxy-protocol = false\n\n# Enables TCP fast open support on the proxy. Requires the proxy to run on Linux.\ntcp-fast-open = false\n\n# Enables BungeeCord plugin messaging channel support on Velocity.\nbungee-plugin-message-channel = true\n\n# Shows ping requests to the proxy from clients.\nshow-ping-requests = false\n\n# By default, Velocity will attempt to gracefully handle situations where the user unexpectedly\n# loses connection to the server without an explicit disconnect message by attempting to fall the\n# user back, except in the case of read timeouts. BungeeCord will disconnect the user instead. You\n# can disable this setting to use the BungeeCord behavior.\nfailover-on-unexpected-server-disconnect = true\n\n# Declares the proxy commands to 1.13+ clients.\nannounce-proxy-commands = true\n\n# Enables the logging of commands\nlog-command-executions = false\n\n# Enables logging of player connections when connecting to the proxy, switching servers\n# and disconnecting from the proxy.\nlog-player-connections = true\n\n[query]\n# Whether to enable responding to GameSpy 4 query responses or not.\nenabled = false\n\n# If query is enabled, on what port should the query protocol listen on?\nport = 25577\n\n# This is the map name that is reported to the query services.\nmap = \"Velocity\"\n\n# Whether plugins should be shown in query response by default or not\nshow-plugins = false",
"type": "writefile"
}
],
"run": {
"stop": "end",
"command": "/usr/lib/jvm/java-${java-version}-openjdk-amd64/bin/java -Xmx${max-memory}M -Xms${min-memory}M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -jar server.jar",
"workingDirectory": "",
"pre": [],
"post": [],
"environmentVars": {}
},
"data": {
"build-number": {
"type": "string",
"desc": "Velocity server build number, see https://papermc.io/downloads",
"display": "Server build number",
"required": true,
"value": "137"
},
"server-address": {
"type": "string",
"desc": "What IP to bind the server to",
"display": "Server IP address",
"required": true,
"value": "localhost"
},
"min-memory": {
"type": "integer",
"desc": "How much minimum memory in MB to allocate to the Java Heap?",
"display": "Minimum memory in MB",
"required": true,
"value": "128"
},
"server-port": {
"type": "integer",
"desc": "What port to bind the server to",
"display": "Server port",
"required": true,
"value": "25565"
},
"server-version": {
"type": "string",
"desc": "Paper server version, see https://papermc.io/downloads",
"display": "Server version",
"required": true,
"value": "3.1.2-SNAPSHOT"
},
"max-memory": {
"display": "Maximum memory in MB",
"type": "integer",
"value": "4096",
"desc": "How much maximum memory in MB to allocate to the Java Heap?"
},
"java-version": {
"display": "Java version",
"type": "integer",
"value": "11",
"desc": "Java version, which will launch the server"
}
},
"environment": {
"type": "standard"
},
"supportedEnvironments": [
{
"type": "standard"
}
]
}