-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env.example
68 lines (60 loc) · 2.57 KB
/
.env.example
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
# - all of the configuration values are optional
# - the defaults are specified below
# - fields marked with ! are read from server.properties, if available
# (the value in .env is then ignored)
# - fields marked with ? are read from server.properties, only
# if not specified in .env
# enable debug logging (more than standard logging)
MCS_DEBUG=false
# server directory path (used for reading server.properties and whitelist files)
SERVER_PATH=.
# ! server port - needs to be equal to the actual server port
SERVER_PORT=25565
# timeout for client connections, in ms (recommended)
MCS_SOCKET_TIMEOUT=5000
# enable matching protocol version for modern clients
MCS_MATCH_PROTOCOL_MODERN=false
# enable matching protocol version for legacy clients
MCS_MATCH_PROTOCOL_LEGACY=true
# default protocol version - clients will show player count
MCS_VERSION_PROTOCOL=1
# version name - shown on clients with incompatible protocol version
MCS_VERSION_NAME="Stopped"
# the command used to shut the server down
MCS_SHUTDOWN_COMMAND=stop
# send MCS_SHUTDOWN_COMMAND on SIGTERM or forward the signal to mc-server-runner
MCS_GRACEFUL_SHUTDOWN=true
# after how many seconds should the server be terminated (0 to disable)
MCS_GRACEFUL_SHUTDOWN_TIMEOUT=60
# query the server periodically and shut it down when empty
MCS_AUTO_STOP=true
# the hostname/IP address of the server to query (most likely localhost)
MCS_AUTO_STOP_HOSTNAME=localhost
# the port of the server to query (SERVER_PORT by default)
MCS_AUTO_STOP_PORT=
# delay to begin querying after server starts, in seconds
MCS_AUTO_STOP_POLLING_DELAY=60
# how often to query the server, in seconds
MCS_AUTO_STOP_POLLING_INTERVAL=10
# how long does the server have to be empty to shut it down, in seconds
MCS_AUTO_STOP_TIMEOUT=600
# online player count - when protocol version matches
MCS_PLAYERS_ONLINE=0
# ? max player count - when protocol version matches
MCS_PLAYERS_MAX=0
# ? Message of The Day - when MCStart is running
MCS_MSG_MOTD="The server is stopped, join to start."
# the message sent to the player starting the server
MCS_MSG_STARTING="Hi $USERNAME, the server is starting..."
# the message sent to players not whitelisted to start the server
MCS_MSG_NOT_WHITELISTED="You are not whitelisted to start this server."
# whether to show a server icon when pinging
MCS_SERVER_ICON=true
# custom server icon file name
MCS_SERVER_ICON_FILE=server-icon.png
# ? whether the server start whitelist is enabled
MCS_WHITELIST=false
# ? whether to use the server's whitelist
MCS_WHITELIST_SERVER=true
# file containing the whitelist entries (JSON or TXT)
MCS_WHITELIST_FILE=whitelist.txt