-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathegg-minecraft-vanila.json
229 lines (229 loc) · 13.3 KB
/
egg-minecraft-vanila.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2022-12-19T09:03:38+01:00",
"name": "Minecraft Vanila",
"author": "support@pterodactyl.io",
"description": "Minecraft is a game about placing blocks and going on adventures. Explore randomly generated worlds and build amazing things from the simplest of homes to the grandest of castles. Play in Creative Mode with unlimited resources or mine deep in Survival Mode, crafting weapons and armor to fend off dangerous mobs. Do all this alone or with friends.",
"features": [
"eula",
"java_version",
"pid_limit"
],
"docker_images": {
"Java 17": "ghcr.io\/pterodactyl\/yolks:java_17",
"Java 16": "ghcr.io\/pterodactyl\/yolks:java_16",
"Java 11": "ghcr.io\/pterodactyl\/yolks:java_11",
"Java 8": "ghcr.io\/pterodactyl\/yolks:java_8"
},
"file_denylist": [],
"startup": "java -Xms128M -XX:MaxRAMPercentage=95.0 -jar {{SERVER_JARFILE}}",
"config": {
"files": "{\r\n \"server.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"server-ip\": \"0.0.0.0\",\r\n \"server-port\": \"{{server.build.default.port}}\",\r\n \"query.port\": \"{{server.build.default.port}}\",\r\n \"rcon.port\": \"{{server.build.env.rconport}}\",\r\n \"gamemode\": \"{{server.build.env.gamemode}}\",\r\n \"level-name\": \"{{server.build.env.worldname}}\",\r\n \"motd\": \"{{server.build.env.motd}}\",\r\n \"pvp\": \"{{server.build.env.pvp}}\",\r\n \"difficulty\": \"{{server.build.env.difficulty}}\",\r\n \"max-players\": \"{{server.build.env.players}}\",\r\n \"enable-rcon\": \"{{server.build.env.enable_rcon}}\",\r\n \"rcon.password\": \"{{server.build.env.password_rcon}}\",\r\n \"hardcore\": \"{{server.build.env.hardcore}}\",\r\n \"white-list\": \"{{server.build.env.whitelist}}\",\r\n \"level-seed\": \"{{server.build.env.seed}}\",\r\n \"generate-structures\": \"{{server.build.env.structurs}}\",\r\n \"view-distance\": \"{{server.build.env.distance}}\",\r\n \"simulation-distance\": \"{{server.build.env.sim_distance}}\",\r\n \"spawn-npcs\": \"{{server.build.env.npcs}}\",\r\n \"spawn-animals\": \"{{server.build.env.animals}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \")! For help, type \"\r\n}",
"logs": "{}",
"stop": "stop"
},
"scripts": {
"installation": {
"script": "#!\/bin\/ash\r\n# Vanilla MC Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nLATEST_VERSION=`curl https:\/\/launchermeta.mojang.com\/mc\/game\/version_manifest.json | jq -r '.latest.release'`\r\nLATEST_SNAPSHOT_VERSION=`curl https:\/\/launchermeta.mojang.com\/mc\/game\/version_manifest.json | jq -r '.latest.snapshot'`\r\n\r\necho -e \"latest version is $LATEST_VERSION\"\r\necho -e \"latest snapshot is $LATEST_SNAPSHOT_VERSION\"\r\n\r\nif [ -z \"$VANILLA_VERSION\" ] || [ \"$VANILLA_VERSION\" == \"latest\" ]; then\r\n MANIFEST_URL=$(curl -sSL https:\/\/launchermeta.mojang.com\/mc\/game\/version_manifest.json | jq --arg VERSION $LATEST_VERSION -r '.versions | .[] | select(.id== $VERSION )|.url')\r\nelif [ \"$VANILLA_VERSION\" == \"snapshot\" ]; then\r\n MANIFEST_URL=$(curl -sSL https:\/\/launchermeta.mojang.com\/mc\/game\/version_manifest.json | jq --arg VERSION $LATEST_SNAPSHOT_VERSION -r '.versions | .[] | select(.id== $VERSION )|.url')\r\nelse\r\n MANIFEST_URL=$(curl -sSL https:\/\/launchermeta.mojang.com\/mc\/game\/version_manifest.json | jq --arg VERSION $VANILLA_VERSION -r '.versions | .[] | select(.id== $VERSION )|.url')\r\nfi\r\n\r\nDOWNLOAD_URL=$(curl ${MANIFEST_URL} | jq .downloads.server | jq -r '. | .url')\r\n\r\necho -e \"running: curl -o ${SERVER_JARFILE} $DOWNLOAD_URL\"\r\ncurl -o ${SERVER_JARFILE} $DOWNLOAD_URL\r\n\r\necho -e \"Install Complete\"",
"container": "ghcr.io\/pterodactyl\/installers:alpine",
"entrypoint": "ash"
}
},
"variables": [
{
"name": "Server Jar File",
"description": "The name of the server jarfile to run the server with.",
"env_variable": "SERVER_JARFILE",
"default_value": "server.jar",
"user_viewable": false,
"user_editable": false,
"rules": "required|regex:\/^([\\w\\d._-]+)(\\.jar)$\/",
"field_type": "text"
},
{
"name": "Server Version",
"description": "The version of Minecraft Vanilla to install. Use \"latest\" to install the latest version, or use \"snapshot\" to install the latest snapshot. Go to Settings > Reinstall Server to apply.",
"env_variable": "VANILLA_VERSION",
"default_value": "latest",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|between:3,15",
"field_type": "text"
},
{
"name": "Max Players",
"description": "The maximum number of players that can play on the server at the same time.",
"env_variable": "players",
"default_value": "10",
"user_viewable": true,
"user_editable": false,
"rules": "required|string|between:2,20",
"field_type": "text"
},
{
"name": "Message of the Day",
"description": "This is the message that is displayed in the server list of the client, below the name.\r\nThe MOTD supports color and formatting codes.\r\nThe MOTD supports special characters, such as \"\u2665\". However, such characters must be converted to escaped Unicode form. An online converter can be found here.",
"env_variable": "motd",
"default_value": "This is a Minecraft Server!",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:50",
"field_type": "text"
},
{
"name": "Whitelist",
"description": "Enables a whitelist on the server.\r\nfalse - No white list is used.\r\ntrue - The file whitelist.json is used to generate the white list.",
"env_variable": "whitelist",
"default_value": "false",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:true,false",
"field_type": "text"
},
{
"name": "RCON Port",
"description": "Sets the RCON network port.",
"env_variable": "rconport",
"default_value": "25575",
"user_viewable": true,
"user_editable": false,
"rules": "required|string|max:6",
"field_type": "text"
},
{
"name": "RCON Password",
"description": "Sets the password for RCON: a remote console protocol that can allow other applications to connect and interact with a Minecraft server over the internet.",
"env_variable": "password_rcon",
"default_value": "mcsecret11",
"user_viewable": true,
"user_editable": true,
"rules": "max:20",
"field_type": "text"
},
{
"name": "ENABLE RCON",
"description": "Enables remote access to the server console.\r\nIt's not recommended to expose RCON to the Internet, because RCON protocol transfers everything without encryption. Everything (including RCON password) communicated between the RCON server and client can be leaked to someone listening in on your connection.",
"env_variable": "enable_rcon",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:true,false",
"field_type": "text"
},
{
"name": "View Distance",
"description": "Sets the amount of world data the server sends the client, measured in chunks in each direction of the player (radius, not diameter). It determines the server-side viewing distance.",
"env_variable": "distance",
"default_value": "10",
"user_viewable": true,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "Simulation Distance",
"description": "Sets the maximum distance from players that living entities may be located in order to be updated by the server, measured in chunks in each direction of the player (radius, not diameter). If entities are outside of this radius, then they will not be ticked by the server nor will they be visible to players.",
"env_variable": "sim_distance",
"default_value": "10",
"user_viewable": true,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "Level Seed",
"description": "Sets a world seed for the player's world, as in Singleplayer. The world generates with a random seed if left blank.\r\nSome examples are: minecraft, 404, 1a2b3c.",
"env_variable": "seed",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "max:20",
"field_type": "text"
},
{
"name": "Worldname",
"description": "The \"level-name\" value is used as the world name and its folder name. The player may also copy their saved game folder here, and change the name to the same as that folder's to load it instead.\r\nCharacters such as ' (apostrophe) may need to be escaped by adding a backslash before them.",
"env_variable": "worldname",
"default_value": "world",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "Gamemode",
"description": "Defines the mode of gameplay.\r\nIf a legacy gamemode number is specified, it is silently converted to a gamemode name.\r\n\r\nsurvival (0)\r\ncreative (1)\r\nadventure (2)\r\nspectator (3)",
"env_variable": "gamemode",
"default_value": "survival",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:survival,creative,adventure,spectator",
"field_type": "text"
},
{
"name": "Difficulty",
"description": "Defines the difficulty (such as damage dealt by mobs and the way hunger and poison affects players) of the server.\r\nIf a legacy difficulty number is specified, it is silently converted to a difficulty name.\r\n\r\npeaceful (0)\r\neasy (1)\r\nnormal (2)\r\nhard (3)",
"env_variable": "difficulty",
"default_value": "peaceful",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:peaceful,easy,normal,hard",
"field_type": "text"
},
{
"name": "Hardcore On\/Off",
"description": "If set to true, server difficulty is ignored and set to hard and players are set to spectator mode if they die.",
"env_variable": "hardcore",
"default_value": "false",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:true,false",
"field_type": "text"
},
{
"name": "PVP On\/Off",
"description": "true - Players can kill each other.\r\nfalse - Players cannot kill other players (also known as Player versus Environment (PvE)).",
"env_variable": "pvp",
"default_value": "false",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:true,false",
"field_type": "text"
},
{
"name": "Generate Structurs",
"description": "false - Structures are not generated in new chunks.\r\ntrue - Structures are generated in new chunks.",
"env_variable": "structurs",
"default_value": "true",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:true,false",
"field_type": "text"
},
{
"name": "Spawn NPCs",
"description": "true - Enabled. Villagers spawn.\r\nfalse - Disabled. No villagers.",
"env_variable": "npcs",
"default_value": "true",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:true,false",
"field_type": "text"
},
{
"name": "Spawn Animals",
"description": "true - Animals spawn as normal.\r\nfalse - Animals immediately vanish.",
"env_variable": "animals",
"default_value": "true",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:true,false",
"field_type": "text"
}
]
}