Update examples for new .mcarc format
This commit is contained in:
parent
66c3caa549
commit
affd9c0351
1 changed files with 8 additions and 5 deletions
13
README.md
13
README.md
|
|
@ -6,7 +6,7 @@ view the output with GNU Screen and run commands.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
```bash
|
```bash
|
||||||
mca [OPTION]... [MCA_NAME|MCA_JAR|MCA_DIR] [INPUT]...
|
mca [OPTION]... [NAME|JAR|MDIR] [INPUT]...
|
||||||
```
|
```
|
||||||
|
|
||||||
## MCA examples
|
## MCA examples
|
||||||
|
|
@ -17,23 +17,26 @@ mkdir -p ~/mca/myserver
|
||||||
cd ~/mca/myserver
|
cd ~/mca/myserver
|
||||||
# This link is taken from https://www.minecraft.net/en-us/download/server
|
# This link is taken from https://www.minecraft.net/en-us/download/server
|
||||||
wget https://piston-data.mojang.com/v1/objects/e6ec2f64e6080b9b5d9b471b291c33cc7f509733/server.jar
|
wget https://piston-data.mojang.com/v1/objects/e6ec2f64e6080b9b5d9b471b291c33cc7f509733/server.jar
|
||||||
echo 'MAX_MEMORY=2048M' >> ./.mcarc
|
echo 'max_memory 2048M' >> ./.mcarc
|
||||||
mca
|
mca
|
||||||
```
|
```
|
||||||
|
|
||||||
### Running `paper` server with Aikar flags
|
### Running `paper` server with Aikar flags
|
||||||
```bash
|
```bash
|
||||||
echo 'PLATFORM=paper' >> ./.mcarc
|
echo 'platform paper' >> ./.mcarc
|
||||||
mca
|
mca
|
||||||
```
|
```
|
||||||
|
|
||||||
### Running `velocity` server with Aikar flags
|
### Running `velocity` server with Aikar flags
|
||||||
```bash
|
```bash
|
||||||
echo 'PLATFORM=velocity' >> ./.mcarc
|
echo 'platform velocity' >> ./.mcarc
|
||||||
mca
|
mca
|
||||||
```
|
```
|
||||||
|
|
||||||
Also, the platform can be determined automatically based on the `.jar` name. For example, the file name is `paper-1.21.5.jar`, since it starts with `paper`, the platform will be `paper` and there is no need to manually specify it in the `PLATFORM` variable.
|
Also, the platform can be determined automatically based on the `.jar` name.
|
||||||
|
For example, the file name is `paper-1.21.5.jar`, since it starts with `paper`,
|
||||||
|
the platform will be `paper` and there is no need to manually specify it in
|
||||||
|
the `PLATFORM` variable.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue