Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTeaMC committed Aug 26, 2024
1 parent 5494428 commit 73ae6ae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@
I don't use Windows anymore, so v2 is written in rust
## Usage
Give information to us with terminal:
```
Enter which server software do you want to use (paper/folia/purpur): folia
Enter the Minecraft version (e.g., 1.21.1): 1.20.6
I accept Mojang EULA https://www.minecraft.net/en-us/eula (y/n): y
EULA accepted and eula.txt file created.
Start downloading some essential files...
Latest stable build is 5
Downloading the latest folia version...
Download completed
```
> 💽 What server software are you using? Paper
> 🪨 What version of Minecraft are you using? 1.21.1
> 📄 Do you agree to the Mojang EULA? Yes
✨ I will setup Paper, with Minecraft server version 1.21.1, accepting Mojang's EULA in this directory (Minecraft-server-auto-setup).
> Proceed? Yes
(1/2) Adding EULA... ✅ done!
(2/2) Downloading Paper... ✅ done!
Summary
+ eula.txt
+ server.jar (Paper)
```
or with a startup command:
```
./Minecraft-server-auto-setup --software=purpur --version=1.21.1 --eula=true
./Minecraft-server-auto-setup --software=Paper --version=1.21.1 --eula=true
```
4 changes: 2 additions & 2 deletions src/softwares.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub fn get_other(software: String, version: String) -> Result<(), Box<dyn std::e
let res = client
.get(format!(
"https://api.papermc.io/v2/projects/{}/versions/{}/builds",
software, version
software.to_lowercase(), version
))
.send();

Expand All @@ -47,7 +47,7 @@ pub fn get_other(software: String, version: String) -> Result<(), Box<dyn std::e
let res = client
.get(format!(
"https://api.papermc.io/v2/projects/{}/versions/{}/builds/{}/downloads/{}",
software, version, latest_build, jar_name
software.to_lowercase(), version, latest_build, jar_name
))
.send();
if let Ok(res) = res {
Expand Down

0 comments on commit 73ae6ae

Please sign in to comment.