Better Minecraft Server Terminal
Project description
Better Minecraft Remote Console
This library utilizes SQLLite3 and Prompt Toolkit to improve upon the mccron package. Several improvements have been made to include history, word completion, and an extensive database for many Minecraft console commands.
The database is required in order to run this tool.
Cloning the Repository
You must have git installed.
git clone https://newgit.inuxnet.org/devel/bettermcrcon.git
Installation
You can install this library locally by issuing the following command. It is recommended to use a python virtual environment.
Setting up and activating the Python Virtual Environment
It is recommended install within a Python Virtual Environment installed, please review your specific OS instructions to install VirtualEnv on your system.
From the directory of the repository:
python3 -m venv venv
Depending on your OS you may need to source different files. These are located in
venv\scripts
on Windows and venv/bin
on Unix, Linux and OSX.
Windows Command Line:
venv\scripts\activate.bat
Windows Powershell:
. venv\scripts\activate.ps1
Unix, Linux, OSX:
. venv/bin/activate
To exit the Virtual Environment:
deactivate
Installing using the setup.py
All commands should be run from the root directory of the repository.
pip install -r requirements.txt
python3 setup.py install
Installing from PyPi
pip install mcterm
Usage
Installation will install mcterm
inside the bin path and should be accessible.
The database must be created or installed. If the database cannot be found,
mcterm
will attempt to create by locating or downloading the SQL Dump of the
database. If this fails, the program will not run.
Usage: mcterm [--host <value>] [--port <value>] [--password <value>] [--prompt <value>]
--host - The hostname or IP of the Minecraft Server
--port - The port of the Minecraft Server is listening on for Console.
--password - The password for the server.
--prompt - Custom Prompt (Defaults to '<host>:<port> >>> ')
Non-MC Commands:
<host>:<port> >>> ? <command> # Launches a browser tab for online help
<host>:<port> >>> exit # Exits the console
<host>:<port> >>> quit # Exits the console
Example Usage:
$ mcterm
Server Hostname or IP: 192.168.1.3
Server Port: 11111
Enter Password: secretpassword
Database is valid.
192.168.1.3:11111 >>> ? enchant
$ mcterm --host 192.168.1.3 --port 11111
Enter Password: secretpassword
Database is valid.
192.168.1.3:11111 >>> help advancement
$ mcterm --host 192.168.1.3 --port 11111 --password 'secretpassword'
Database is valid.
192.168.1.3:11111 >>> give bob iron_block 64
$ mcterm --host 192.168.1.3 --port 11111 --password 'secretpassword' --prompt 'MyServer >>> '
Database is valid.
MyServer >>> ? advancement
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mcterm-0.9.6.tar.gz
.
File metadata
- Download URL: mcterm-0.9.6.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6497eb8294b2d83a3cffc3f18ffccc3fe8497fa8d3178a226cfa72beed259134 |
|
MD5 | fc3fdbac030d6ba86728e25065fde5ce |
|
BLAKE2b-256 | 4bae04ad7711bc6b75bc0ebf75491efe1b77957a2a01c8758de1f3c27b94d703 |
File details
Details for the file mcterm-0.9.6-py3-none-any.whl
.
File metadata
- Download URL: mcterm-0.9.6-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c389fb6769d6071ad53ac05c94a45ce6bc274b6472293c7c2b0c864dff160c07 |
|
MD5 | f52ab14b03c2d92c8c65f01b09f6cf52 |
|
BLAKE2b-256 | c8829ae6c93afda2105d867a02788d6b964ab695d05487e63eee7e665995defe |