Skip to main content

Minecraft rcon shell in Python

Project description

PyRconShell

Minecraft rcon shell in Python using:

Works on Linux, macOS and Windows. It requires Python 3.8 or higher. Note on Debian based Linux the python3-venv package is needed.

usage

Bootstrap and use PyRconShell, e.g.:

~$ git clone https://github.com/jedie/PyRconShell.git
~$ cd PyRconShell
~/PyRconShell$ ./rcon-shell.py

...

Developer shell - py_rcon_shell - v0.0.1

...

(py_rcon_shell) rcon list
Send: list
Response:
----------------------------------------------------------------------------------------------------
There are 3 of a max of 10 players online: Foo, Bar, JohnDoe
----------------------------------------------------------------------------------------------------

(py_rcon_shell) rcon op JohnDoe
Send: op JohnDoe
Response:
----------------------------------------------------------------------------------------------------
Made JohnDoe a server operator
----------------------------------------------------------------------------------------------------

Activate rcon server

To enable rcon in your server.properties change this:

enable-rcon=true
rcon.port=25575
rcon.password=a-password-is-needed

Note a password must be set! A empty password will disable rcon!

Add these settings into: ~/.PyRconShell.ini, e.g.:

[DEFAULT]
rcon_host = 127.0.0.1
rcon_port = 25575
rcon_password = a-password-is-needed

hints

Check if rcon listen with e.g.:

$ lsof -i

Links

Project links

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

rcon-shell-0.0.1.tar.gz (17.0 kB view hashes)

Uploaded Source

Built Distribution

rcon_shell-0.0.1-py3-none-any.whl (17.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page