-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48b0098
commit 7f594a2
Showing
17 changed files
with
212 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# rust | ||
target/ | ||
# developer testing | ||
test/ | ||
# mkdocs output | ||
site/ | ||
|
||
# mcman: Exclude mcman build outputs | ||
**/server | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,29 @@ | ||
# Building (How it works) | ||
# Understanding Building | ||
|
||
`mcman build` is basically the most important command it has. It, of couse, builds your server. | ||
Building is the process of... basically building the entire server. | ||
|
||
Here are the steps/stages of how it does it: | ||
Before everything else, building requires a [server.toml](../reference/server.toml.md). Check out the [getting started](./getting-started.md) tutorial if you dont have one. | ||
|
||
Before everything, mcman will create a `server/` directory to download everything into if it doesnt exist. | ||
|
||
## 1. Server Jar | ||
|
||
To run a minecraft server, you need the server itself! In this stage, mcman basically downloads the `jar` property on the [`server.toml`](../reference/server.toml.md) | ||
First, mcman will download the server jar. And if neccesary (quilt and buildtools) will run the installer. | ||
|
||
## 2. Plugins/Mods | ||
|
||
In this stage, mcman downloads every mod and plugin defined in the `server.toml`. | ||
|
||
## 3. Datapacks | ||
|
||
Like plugins and mods, if there are any, mcman will download every datapack for every world that exists | ||
|
||
## 4. Configurations (Bootstrapping) | ||
|
||
In this stage, mcman will 'bootstrap' your configuration files - which is a fancy synonim for "copy, paste, find and replace" | ||
|
||
You can check the [variables](./variables.md) section for more info | ||
|
||
## 5. Scripts | ||
|
||
Finally, mcman generates `start.bat` and `start.sh` scripts. These can be disabled and configured further under `server.toml` [(docs here)](../reference/server-launcher.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,58 @@ | ||
# Getting Started | ||
|
||
Let's create a simple server as an example. | ||
|
||
## Initial Setup | ||
|
||
Since mcman is git-compatible, you can create a new Github Repository to put your server configuration files in. This is optional but recommended. | ||
|
||
Create a new folder (or clone your repository) for your server and `cd` into it. | ||
|
||
Then inside your server folder, run [`mcman init`](../commands/init.md) | ||
|
||
![mcman init](https://cdn.discordapp.com/attachments/1109215116060266567/1134187743300296815/render1690481729604.gif) | ||
|
||
It will interactively allow you to set up a basic **`server.toml`** file. | ||
|
||
!!! question "Whats a `server.toml` file????" | ||
When using mcman, a `server.toml` file is some kind of metadata file containing neccesary information about it. For example, it contains the server name, version, plugins/mods and more. | ||
|
||
!!! tip "Want to import from a modpack?" | ||
mcman supports importing from some modpack formats (`mrpack` and `packwiz`) | ||
|
||
See [this section](./importing-modpacks.md) to see how | ||
|
||
## Building | ||
|
||
Now, lets 'build' and run the server! | ||
|
||
- If you want to run it yourself, use [`mcman build`](../commands/build.md) `&& cd server` and run the `start.{bat,sh}` script. | ||
- Orrr you can just do [`mcman run`](../commands/run.md) which does both for you. | ||
|
||
## Bootstrapping | ||
|
||
If you open the newly generated `config/server.properties` file, you'll see something like this: | ||
|
||
```properties title="config/server.properties" | ||
server-port=${PORT:25565} | ||
motd=${SERVER_NAME:A Minecraft Server} | ||
``` | ||
|
||
If you run `mcman build`, you should see a `server.properties` file inside the `server/` folder too. | ||
|
||
If you open *that* file, inside `server/`, you'll see that it contains these two lines: | ||
|
||
```properties title="server/server.properties" | ||
server-port=25565 | ||
motd=mcman-example-quilt | ||
``` | ||
|
||
As you can guess, when running `mcman build`, mcman will process configuration files inside `config/` and copy them over to `server/` alongside downloading the server jar/plugins/mods and such. | ||
|
||
For more information, check out the [Variables](./variables.md) section :3 | ||
|
||
## Adding Plugins or Mods | ||
|
||
For now, you can use the [`mcman import url <URL>`](../commands/import.md#mcman-import-url-url) command to import mods or plugins from URLs. | ||
|
||
Or alternatively write and edit the [`server.toml`](../reference/server.toml.md) yourself to add it. You can check out the [reference](../reference/downloadable/index.md) for the Downloadable type which is basically a mod/plugin source. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.