Skip to content

Commit 2e15a72

Browse files
authored
Merge pull request #8 from ParadigmMC/dennis
0.2.1
2 parents 3d0bed4 + 4d247e7 commit 2e15a72

File tree

20 files changed

+875
-130
lines changed

20 files changed

+875
-130
lines changed

Cargo.lock

+19-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mcman"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition = "2021"
55
authors = ["ParadigmMC"]
66
repository = "https://github.com/ParadigmMC/mcman"

DOCS.md

+130-14
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,22 @@ Index:
1313

1414
Here are a list of commands. You can type `mcman` or `mcman --help` for a basic list of it.
1515

16-
### `mcman init`
16+
### `mcman init [--name <name>] [--mrpack <src>]`
1717

1818
Initializes a new server in the current directory.
1919

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+
```
2132

2233
### `mcman version`
2334

@@ -72,6 +83,13 @@ Example render:
7283

7384
Imports a plugin or a mod from a url.
7485

86+
Supports:
87+
88+
- Modrinth
89+
- Spigot
90+
- Github (releases)
91+
- If not those, will prompt with direct url or jenkins
92+
7593
Example usage:
7694

7795
```sh
@@ -80,6 +98,36 @@ mcman import url https://modrinth.com/plugin/imageframe
8098
mcman import url https://www.spigotmc.org/resources/armorstandeditor-reborn.94503/
8199
```
82100

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+
83131
## Folder Structure
84132

85133
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
215263
disable = false # false by default
216264
217265
# adds your own args
218-
jvm_args = "-Dhello=true"
266+
jvm_args = "-exampleidk"
219267
game_args = "--world abc"
220268
221269
# use aikar's flags
@@ -227,13 +275,20 @@ proxy_flags = false
227275
228276
# adds -Dcom.mojang.eula.agree=true
229277
# therefore you agree to mojang's eula
278+
# writes eula.txt when on fabric/quilt
230279
eula_args = true
231280
232-
# adds --nogui to game args, should set to false on proxies...
281+
# adds --nogui to game args
233282
nogui = true
234283
235284
# specify -Xmx/-Xms (memory)
236285
memory = "2048M"
286+
287+
# a table of properties
288+
[launcher.properties]
289+
hello="thing"
290+
# ^ same as this:
291+
# jvm_args = "-Dhello=thing"
237292
```
238293

239294
## Types
@@ -244,11 +299,14 @@ Below are some types used in `server.toml`
244299

245300
A downloadable is some source of a plugin, mod or a server jar.
246301

247-
Index of types:
302+
Index of sources:
248303

249304
- [Vanilla](#vanilla)
250-
- [PaperMC](#papermc)
305+
- [Fabric](#fabric)
306+
- [Quilt](#quilt)
307+
- [PaperMC](#papermc) (Paper, Waterfall and Velocity)
251308
- [PurpurMC](#purpurmc)
309+
- [BungeeCord](#bungeecord)
252310
- [Modrinth](#modrinth)
253311
- [Spigot](#spigot)
254312
- [Github Releases](#github-releases)
@@ -263,20 +321,53 @@ Used for a vanilla server jar. Has no properties
263321
type = "vanilla"
264322
```
265323

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+
266358
#### PaperMC
267359

268360
Allows downloading a [PaperMC](https://papermc.io/) project.
269361

270362
**Options:**
271363

272-
- `type` = `papermc`
364+
- `type` = `"papermc"`
273365
- `project`: string - The project name
274366
- `build`: string | `"latest"` - Optional
275367

276368
```toml
277369
# Its recommended to use the shortcuts:
278370
type = "paper"
279-
type = "folia"
280371
type = "waterfall"
281372
type = "velocity"
282373
@@ -286,7 +377,7 @@ project = "paper"
286377
287378
# Optionally define the build if you dont want to use the latest:
288379
type = "papermc"
289-
project = "folia"
380+
project = "waterfall"
290381
build = "17"
291382
# Note: the shortcuts do not support the 'build' property
292383
```
@@ -297,7 +388,7 @@ Downloads server jar from [PurpurMC](https://purpurmc.org/).
297388

298389
**Options:**
299390

300-
- `type` = `purpur`
391+
- `type` = `"purpur"`
301392
- `build`: string | `"latest"` - Optional
302393

303394
```toml
@@ -308,13 +399,31 @@ build = "10"
308399
# if omitted, uses latest
309400
```
310401

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+
311420
#### Modrinth
312421

313422
Downloads from [Modrinth](https://modrinth.com/)'s API
314423

315424
**Options:**
316425

317-
- `type` = `modrinth` | `mr`
426+
- `type` = `"modrinth"` | `"mr"`
318427
- `id`: string - id of the project or the slug
319428
- `version`: string | `"latest"` - Version ID, `"latest"` not recommended
320429

@@ -332,7 +441,7 @@ This uses [Spiget](https://spiget.org/)'s API.
332441

333442
**Options:**
334443

335-
- `type` = `spigot`
444+
- `type` = `"spigot"`
336445
- `id`: string - id of the project
337446

338447
You can find the ID of the resource in the URL:
@@ -355,7 +464,7 @@ Allows downloading from github releases
355464

356465
**Options:**
357466

358-
- `type` = `ghrel`
467+
- `type` = `"ghrel"`
359468
- `repo`: string - repository identifier, like `"ParadigmMC/mcman"`
360469
- `tag`: string | `"latest"` - The tag of the release
361470
- `asset`: string | `"first"` - The name of the asset (checks for inclusion)
@@ -376,7 +485,7 @@ Use a jenkins server
376485

377486
**Options:**
378487

379-
- `type` = `jenkins`
488+
- `type` = `"jenkins"`
380489
- `url`: string - url of the jenkins server
381490
- `job`: string - The job
382491
- `build`: string | `"latest"` - The build number to use
@@ -401,6 +510,13 @@ artifact = "first"
401510

402511
Allows you to download from a defined URL.
403512

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+
404520
```toml
405521
[[mods]]
406522
type = "url"

README.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,20 @@ Powerful Minecraft Server Manager CLI. Easily install jars (server, plugins & mo
1616
- Always keep up to date with new serverjar builds!
1717
- No more manually downloading jars - mcman auto updates them according to your `server.toml`
1818
- Supports a variety of [sources](./DOCS.md#downloadable):
19-
- Server jars:
19+
- Servers:
2020
- Vanilla
21-
- PaperMC (Paper, Folia, Waterfall and Velocity)
21+
- Fabric
22+
- Quilt
23+
- Paper
2224
- PurpurMC
25+
- Velocity
26+
- Waterfall
27+
- BungeeCord
2328
- Plugins/Mods:
2429
- Modrinth
2530
- Spigot
2631
- And even **Github Releases**, **Custom URL**s and **Jenkins!**
32+
- Supports importing from [mrpack](./DOCS.md#mcman-import-mrpack-src)s!
2733
- Bootstraps your server configuration files
2834
- Allows you to use variables inside your config files
2935
- Environment variables for secrets
@@ -37,6 +43,13 @@ View the [Documentation](./DOCS.md) here.
3743

3844
## Changelog
3945

46+
### `0.2.1`
47+
48+
- Added **Fabric** support.
49+
- Added **Quilt** support.
50+
- Added `mcman import mrpack` command.
51+
- `mcman init` now supports mrpacks
52+
4053
### `0.2.0`
4154

4255
- Wrote more [documentation](./DOCS.md)
@@ -49,8 +62,6 @@ View the [Documentation](./DOCS.md) here.
4962
- Supports modrinth, modrinth's cdn, github, spigot, jenkins and custom urls.
5063
- Also wayy too interactive. For example, it'll ask for which release to use and suggest which asset to use. Similar thing in modrinth importing.
5164
- Added **BungeeCord** support.
52-
<!-- - Added **Fabric** support. -->
53-
<!-- - Added **Quilt** support. -->
5465
- Added **Jenkins** as a source.
5566
- Impoved `mcman init` command. It now has a little wizard!
5667
- Made mcman build look prettier

res/default_readme

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[![mcman badge](https://img.shields.io/badge/uses-mcman-purple?logo=github)](https://github.com/ParadigmMC/mcman)
44

5+
<!-- run 'mcman md' to update! -->
6+
57
<!--start:mcman-server-->
68
<!--end:mcman-server-->
79

0 commit comments

Comments
 (0)