Crates.io | serbo-mc |
lib.rs | serbo-mc |
version | 0.1.0 |
source | src |
created_at | 2020-08-06 00:20:57.659201 |
updated_at | 2020-08-06 00:20:57.659201 |
description | Easy Minecraft server management. |
homepage | |
repository | https://github.com/ReedKrawiec/Serbo |
max_upload_size | |
id | 273452 |
size | 16,024 |
Minecraft Server Manager in Rust
To manage one or more servers, you must first create a Manager. This struct will allow you to control and manage multiple servers.
A manager requires three arguments: A folder to contain the files of the servers you are managing, a version folder, which contains folders containing server files that correspond to the versions of Minecraft that you are supporting (they should be named as such: 1.16.1, 1.15.2 ...), and a jar_name, which is the name of the jarfile that serbo should execute to start the server.
You call methods on this manager to create, delete, start, stop, change a server's version, and to obtain a reference to a struct that represents an online server called an Instance.
With an Instance, you have access to methods that can access stdout (the server output), send a command to the server (via stdin), or stop that specific server.