@@ -13,11 +13,22 @@ Index:
13
13
14
14
Here are a list of commands. You can type ` mcman ` or ` mcman --help ` for a basic list of it.
15
15
16
- ### ` mcman init `
16
+ ### ` mcman init [--name <name>] [--mrpack <src>] `
17
17
18
18
Initializes a new server in the current directory.
19
19
20
- Example:
20
+ This command is interactive. Just run ` mcman init ` !
21
+
22
+ The source is the same as one in [ ` mcman import mrpack ` ] ( #mcman-import-mrpack-src )
23
+
24
+ Example using [ Adrenaserver] ( https://modrinth.com/modpack/adrenaserver ) :
25
+
26
+ ``` sh
27
+ # these are all identical
28
+ mcman init --mrpack mr:adrenaserver
29
+ mcman init --mrpack https://modrinth.com/modpack/adrenaserver
30
+ mcman init --mrpack https://cdn.modrinth.com/data/H9OFWiay/versions/2WXUgVhc/Adrenaserver-1.4.0%2B1.20.1.quilt.mrpack
31
+ ```
21
32
22
33
### ` mcman version `
23
34
@@ -72,6 +83,13 @@ Example render:
72
83
73
84
Imports a plugin or a mod from a url.
74
85
86
+ Supports:
87
+
88
+ - Modrinth
89
+ - Spigot
90
+ - Github (releases)
91
+ - If not those, will prompt with direct url or jenkins
92
+
75
93
Example usage:
76
94
77
95
``` sh
@@ -80,6 +98,36 @@ mcman import url https://modrinth.com/plugin/imageframe
80
98
mcman import url https://www.spigotmc.org/resources/armorstandeditor-reborn.94503/
81
99
```
82
100
101
+ ### ` mcman import mrpack <src> `
102
+
103
+ Imports a [ mrpack] ( https://docs.modrinth.com/docs/modpacks/format_definition/ ) file (modrinth modpacks)
104
+
105
+ ** Note:** [ ` mcman init ` ] ( #mcman-init---name-name---mrpack-src ) supports mrpacks
106
+
107
+ The source can be:
108
+
109
+ - A direct URL to a ` .mrpack ` file
110
+ - A local file path
111
+ - Modpack URL (` https://modrinth.com/modpack/{id} ` )
112
+ - Modrinth project id prefixed with ` mr: `
113
+
114
+ Example usages:
115
+
116
+ ``` sh
117
+ # direct link
118
+ mcman import mrpack https://cdn.modrinth.com/data/xldzprsQ/versions/xWFqQBjM/Create-Extra-full-1.1.0.mrpack
119
+ # only /modpack urls
120
+ mcman import mrpack https://modrinth.com/modpack/create-extra
121
+ # prefixed
122
+ mcman import mrpack mr:simply-skyblock
123
+ # local file
124
+ mcman import mrpack My-Pack.mrpack
125
+ ```
126
+
127
+ ### ` mcman import customs `
128
+
129
+ Utility tool for re-importing all custom url downloadables in a server.
130
+
83
131
## Folder Structure
84
132
85
133
In a normal server environment, everything is in one folder and a big giant mess to navigate.
@@ -215,7 +263,7 @@ Default values aren't written back to config - except for `aikars_flags`, `proxy
215
263
disable = false # false by default
216
264
217
265
# adds your own args
218
- jvm_args = "-Dhello=true "
266
+ jvm_args = "-exampleidk "
219
267
game_args = "--world abc"
220
268
221
269
# use aikar's flags
@@ -227,13 +275,20 @@ proxy_flags = false
227
275
228
276
# adds -Dcom.mojang.eula.agree=true
229
277
# therefore you agree to mojang's eula
278
+ # writes eula.txt when on fabric/quilt
230
279
eula_args = true
231
280
232
- # adds --nogui to game args, should set to false on proxies...
281
+ # adds --nogui to game args
233
282
nogui = true
234
283
235
284
# specify -Xmx/-Xms (memory)
236
285
memory = "2048M"
286
+
287
+ # a table of properties
288
+ [launcher.properties]
289
+ hello="thing"
290
+ # ^ same as this:
291
+ # jvm_args = "-Dhello=thing"
237
292
` ` `
238
293
239
294
# # Types
@@ -244,11 +299,14 @@ Below are some types used in `server.toml`
244
299
245
300
A downloadable is some source of a plugin, mod or a server jar.
246
301
247
- Index of types :
302
+ Index of sources :
248
303
249
304
- [Vanilla](#vanilla)
250
- - [PaperMC](#papermc)
305
+ - [Fabric](#fabric)
306
+ - [Quilt](#quilt)
307
+ - [PaperMC](#papermc) (Paper, Waterfall and Velocity)
251
308
- [PurpurMC](#purpurmc)
309
+ - [BungeeCord](#bungeecord)
252
310
- [Modrinth](#modrinth)
253
311
- [Spigot](#spigot)
254
312
- [Github Releases](#github-releases)
@@ -263,20 +321,53 @@ Used for a vanilla server jar. Has no properties
263
321
type = "vanilla"
264
322
` ` `
265
323
324
+ # ### Fabric
325
+
326
+ The [Fabric](https://fabricmc.net/) mod loader
327
+
328
+ **Options:**
329
+
330
+ - ` type` = `"fabric"`
331
+ - `installer` : string | `"latest"` - Installer version to use
332
+ - `loader` : string | `"latest"` - Loader version to use
333
+
334
+ ` ` ` toml
335
+ type = "fabric"
336
+ installer = "latest"
337
+ loader = "latest"
338
+ ` ` `
339
+
340
+ # ### Quilt
341
+
342
+ The [Quilt](https://quiltmc.org/) project - mod loader compatible with fabric
343
+
344
+ Due to some complexities with quilt, `mcman` will need to run `java` to install the quilt server jar - keep this in mind.
345
+
346
+ **Options:**
347
+
348
+ - ` type` = `"quilt"`
349
+ - `installer` : string | `"latest"` - Installer version to use
350
+ - `loader` : string | `"latest"` - Loader version to use
351
+
352
+ ` ` ` toml
353
+ type = "quilt"
354
+ installer = "latest"
355
+ loader = "latest"
356
+ ` ` `
357
+
266
358
# ### PaperMC
267
359
268
360
Allows downloading a [PaperMC](https://papermc.io/) project.
269
361
270
362
**Options:**
271
363
272
- - ` type` = `papermc`
364
+ - ` type` = `" papermc" `
273
365
- `project` : string - The project name
274
366
- `build` : string | `"latest"` - Optional
275
367
276
368
` ` ` toml
277
369
# Its recommended to use the shortcuts:
278
370
type = "paper"
279
- type = "folia"
280
371
type = "waterfall"
281
372
type = "velocity"
282
373
@@ -286,7 +377,7 @@ project = "paper"
286
377
287
378
# Optionally define the build if you dont want to use the latest:
288
379
type = "papermc"
289
- project = "folia "
380
+ project = "waterfall "
290
381
build = "17"
291
382
# Note: the shortcuts do not support the 'build' property
292
383
` ` `
@@ -297,7 +388,7 @@ Downloads server jar from [PurpurMC](https://purpurmc.org/).
297
388
298
389
**Options:**
299
390
300
- - ` type` = `purpur`
391
+ - ` type` = `" purpur" `
301
392
- `build` : string | `"latest"` - Optional
302
393
303
394
` ` ` toml
@@ -308,13 +399,31 @@ build = "10"
308
399
# if omitted, uses latest
309
400
` ` `
310
401
402
+ # ### BungeeCord
403
+
404
+ BungeeCord is just a shortcut to a [jenkins](#jenkins) downloadable:
405
+
406
+ ` ` ` toml
407
+ type = "bungeecord"
408
+ ` ` `
409
+
410
+ If you'd like to get a specific build, use this :
411
+
412
+ ` ` ` toml
413
+ type = "jenkins"
414
+ url = "https://ci.md-5.net"
415
+ job = "BungeeCord"
416
+ build = "latest"
417
+ artifact = "BungeeCord"
418
+ ` ` `
419
+
311
420
# ### Modrinth
312
421
313
422
Downloads from [Modrinth](https://modrinth.com/)'s API
314
423
315
424
**Options:**
316
425
317
- - ` type` = `modrinth` | `mr `
426
+ - ` type` = `" modrinth" ` | `"mr" `
318
427
- `id` : string - id of the project or the slug
319
428
- `version` : string | `"latest"` - Version ID, `"latest"` not recommended
320
429
@@ -332,7 +441,7 @@ This uses [Spiget](https://spiget.org/)'s API.
332
441
333
442
**Options:**
334
443
335
- - ` type` = `spigot`
444
+ - ` type` = `" spigot" `
336
445
- `id` : string - id of the project
337
446
338
447
You can find the ID of the resource in the URL :
@@ -355,7 +464,7 @@ Allows downloading from github releases
355
464
356
465
**Options:**
357
466
358
- - ` type` = `ghrel`
467
+ - ` type` = `" ghrel" `
359
468
- `repo` : string - repository identifier, like `"ParadigmMC/mcman"`
360
469
- `tag` : string | `"latest"` - The tag of the release
361
470
- `asset` : string | `"first"` - The name of the asset (checks for inclusion)
@@ -376,7 +485,7 @@ Use a jenkins server
376
485
377
486
**Options:**
378
487
379
- - ` type` = `jenkins`
488
+ - ` type` = `" jenkins" `
380
489
- `url` : string - url of the jenkins server
381
490
- `job` : string - The job
382
491
- `build` : string | `"latest"` - The build number to use
@@ -401,6 +510,13 @@ artifact = "first"
401
510
402
511
Allows you to download from a defined URL.
403
512
513
+ **Options:**
514
+
515
+ - ` type` = `"url"`
516
+ - `url` : string - URL to the file
517
+ - `filename` : string? - Optional filename if you dont like the name from the url
518
+ - `desc` : string? - Optional description (shown in markdown tables)
519
+
404
520
` ` ` toml
405
521
[[mods]]
406
522
type = "url"
0 commit comments