Crates.io | managecraft |
lib.rs | managecraft |
version | 0.1.0 |
source | src |
created_at | 2021-06-17 22:11:01.100312 |
updated_at | 2021-06-17 22:11:01.100312 |
description | A CLI Utility to communicate with your Minecraft server over the RCON protocol. |
homepage | |
repository | https://github.com/jayman888/managecraft/ |
max_upload_size | |
id | 411582 |
size | 33,086 |
managecraft
:building_construction:A CLI Utility to communicate with your Minecraft server over the RCON protocol
Use managecraft --help
or managecraft <subcommand> --help
for more information about available commands
managecraft say "Hello Server!"
You'll see output of [Rcon] Hello Server!
in the server log as well as in game
// Create Server Settings and Client
let settings = settings::Settings::new()?;
let mut client = Client::new(settings).await?;
// Send a command
let c = String::from("time set day");
client.execute(commands::Execute { command: c }).await?;;
Setting up configuration for connecting to the server can be done in three ways. Each subsequent step will update any matching values from previous setps.
Url: 0.0.0.0
Port: 25575
Password: "test"
$HOME/.config/managecraft.toml
to overwrite some or all default valuesCreating a config file with only a pasword field will leave all default values but overwrite the password value
# $HOME/.config/managecraft.toml
password="hunter2"
MANAGECRAFT_
will be considered and if matches will overwrite a property.This will set the port value to 12345
overwriting default config as well as a port value specified in the config file from step 2.
MANAGECRAFT_PORT=12345 managecraft save-all