Python版Minecraft rcon shell
项目描述
PyRconShell
使用https://github.com/conqp/rcon和https://github.com/jedie/dev-shell在Python中创建的Minecraft rcon shell
适用于Linux、macOS和Windows。它需要Python 3.8或更高版本。注意,在基于Debian的Linux上,需要python3-venv
包。
用法
引导和使用PyRconShell,例如
~$ 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
----------------------------------------------------------------------------------------------------
激活rcon服务器
要在您的server.properties
中启用rcon,请更改以下内容
enable-rcon=true
rcon.port=25575
rcon.password=a-password-is-needed
注意必须设置密码!空密码将禁用rcon!
将这些设置添加到:~/.PyRconShell.ini
,例如
[DEFAULT]
rcon_host = 127.0.0.1
rcon_port = 25575
rcon_password = a-password-is-needed
提示
例如,检查rcon是否正在监听
$ lsof -i
链接
项目链接
项目细节
下载文件
下载适合您平台的应用程序。如果您不确定选择哪个,请了解更多关于安装包的信息。
源分发
rcon-shell-0.0.1.tar.gz (17.0 kB 查看哈希)
构建分发
rcon_shell-0.0.1-py3-none-any.whl (17.4 kB 查看哈希值)
关闭
rcon-shell-0.0.1.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 981ca9521a5c098fd69d0289de5db5396dcd20515580e8e0222a003b02a42734 |
|
MD5 | f138b332e778e940842bde170df064d7 |
|
BLAKE2b-256 | 29b2194a342821408b4330ff3bd6ebf2b2c9072651e96445f400efa140c553af |
关闭
rcon_shell-0.0.1-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | bb1dac717a20a6966d75bb812b5ecf3f19bdf8cfe5ba91ad9cd20e8742ff6291 |
|
MD5 | 4c0e67dea982eae386c3c07d24156b48 |
|
BLAKE2b-256 | a88ce506f3473f5e6e4dc0372da81afb96ea169290f16483da866c2fe4523314 |